/* Cobalt / ProjScale: the house palette, hierarchy, and page compositions. */
:root {
  --paper: #f4f6fb;
  --white: #fff;
  --soft: #e9eef8;
  --ink: #15233e;
  --mute: #465674;
  --line: #c8d3e5;
  --line-dark: #a5b4d0;
  --accent: #173fc2;
  --accent-dark: #0f2d95;
  --blue: var(--accent);
  --rule: var(--line);
  --night: #122247;
  --mist: #dce6ff;
  --on-dark: #f8faff;
  --good: #d6ede3;
  --danger: #962a39;
  --control: #788bac;
  --radius: 12px;
  --wrap: 1380px;
  --pad: clamp(16px, 4.15vw, 64px);
  --section: clamp(52px, 7vw, 108px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

body { font-size: 17px; line-height: 1.55; }
::selection { background: var(--mist); color: var(--night); }
input, textarea, select { caret-color: var(--accent); }
::placeholder { color: var(--mute); opacity: 1; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible {
  outline-color: currentColor;
  box-shadow: 0 0 0 3px var(--white);
}
h1, h2, h3, h4 { text-wrap: pretty; }
h1, h2 { letter-spacing: -.04em; font-weight: 700; }
h2 { font-size: clamp(34px, 4.25vw, 62px); }
h3 { font-size: clamp(23px, 2.7vw, 37px); }
.kind, .kicker, .num { font: 600 14px/1.4 var(--sans); text-transform: none; letter-spacing: 0; }
.link { font-size: 16px; font-weight: 600; text-decoration-thickness: 1px; }
.button, .btn {
  min-height: 50px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 19px;
  background: var(--accent);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}
.button:hover, .btn:hover { background: var(--accent-dark); border-color: transparent; }
.button svg { flex: none; }
.site-head {
  height: var(--header-height);
  gap: clamp(14px, 2.5vw, 36px);
  border-bottom: 0;
}
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}
.brand { font-size: 25px; font-weight: 700; }
.site-head nav { gap: clamp(13px, 2.35vw, 34px); font-size: 15px; }
.site-head nav a { display: flex; align-items: center; min-height: 44px; }
.head-social { display: none; }
.head-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  margin-left: auto;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.25;
}
.head-cta:hover { background: var(--soft); }
.head-cta span { display: none; }

/* A cobalt field sets the studio apart from the dark UI inside the frame. */
.hero-field { background: var(--accent); color: var(--on-dark); }
.hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 4.3vw, 66px) clamp(26px, 4.75vw, 70px);
  padding-block: clamp(48px, 5.5vw, 84px) 0;
}
.hero h1 {
  max-width: none;
  margin: 0 0 22px;
  font-size: clamp(43px, 4.9vw, 76px);
  line-height: .99;
  text-wrap: balance;
}
.hero .lead { max-width: 39ch; color: var(--on-dark); }
.hero .button, .contact .button { background: var(--white); color: var(--accent-dark); }
.hero .button:hover, .contact .button:hover { background: var(--mist); }
.hero-note { color: var(--mist); font: 400 14px/1.45 var(--sans); margin-top: 12px; }
.contact-links { gap: 4px 16px; }
.contact-links a {
  min-height: 44px;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  padding: 2px 0;
  font-size: 14px;
}
.contact-links a span { font: 400 12px/1.35 var(--sans); text-transform: none; letter-spacing: 0; }
.contact-links a:hover { text-decoration: underline; }
.hero .contact-links, .contact .contact-links { margin-top: 16px; }
.hero .contact-links a, .contact .contact-links a { color: var(--on-dark); }
.hero .contact-links a span, .contact .contact-links a span { color: var(--mist); }
.hero-proof {
  display: flex;
  flex-direction: column;
  justify-self: stretch;
  max-width: none;
  min-width: 0;
  padding: 0;
  border: 1px solid #96aaff;
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: 0 10px 28px #0b1d533b;
}
.hero-proof figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  border: 0;
  padding: 9px clamp(12px, 1.45vw, 21px);
}
.hero-proof figcaption strong { margin: 0; font-size: 20px; line-height: 1.2; }
.hero-proof figcaption p { color: var(--mist); }
.hero-proof figcaption .link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}
.hero-proof figcaption .link:hover { color: var(--mist); }
.hero-screen { display: block; }
.hero-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  max-height: none;
  border: 0;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  background: var(--night);
}
.trust {
  grid-column: 1 / -1;
  grid-template-columns: .95fr 1.32fr .91fr;
  gap: 0;
  max-width: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid #96aaff;
  font: 600 15px/1.35 var(--sans);
  color: var(--on-dark);
}
.trust span { padding: 18px 14px 18px 0; display: flex; align-items: center; }
.trust span + span { padding-left: clamp(12px, 2vw, 30px); border-left: 1px solid #96aaff; }

.works, .services, .security, .method, .contact { padding-block: var(--section); }
.works { background: var(--soft); border: 0; }
.section-head, .security-head {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
  gap: 12px 42px;
  align-items: center;
  padding-bottom: clamp(20px, 3vw, 42px);
}
.section-head p { max-width: 41ch; }
.section-head p strong { color: var(--ink); }
.case-selector {
  margin: 0;
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  gap: 1px;
  background: var(--line);
  padding: 1px 1px 0;
}
.case-selector button {
  min-width: 0;
  min-height: 76px;
  justify-content: center;
  border: 0;
  background: var(--paper);
  padding: 10px clamp(9px, 1.4vw, 20px);
  position: relative;
}
.case-selector button:first-child { border-top-left-radius: calc(var(--radius) - 1px); }
.case-selector button:last-child { border-top-right-radius: calc(var(--radius) - 1px); }
.case-selector button > span, .service-list .num { display: none; }
.case-selector button strong { font-size: 17px; }
.case-selector button small { font-size: 13px; }
.case-selector button:hover { background: var(--mist); }
.case-selector button[aria-selected=true] { background: var(--accent); color: var(--white); }
.case-selector button[aria-selected=true] small { color: var(--on-dark); }
.case-selector button:focus-visible { z-index: 1; }
.case-stage {
  padding: clamp(16px, 3.3vw, 42px);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
}
.case { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(20px, 4vw, 58px); }
.media-case figure { padding: 0; border: 0; background: transparent; }
.media-case figure img, .case video { border: 0; border-radius: 7px; }
.media-case h3 { max-width: 22ch; }
.case figcaption { font-size: 14px; }
.media-case dt { font-size: 15px; }
.media-case dd, .case .kind, .app-meta p { font-size: 15px; }
.media-case .contact-links { display: none; }
.app-case { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.app-stage { border-radius: 7px; }
.app-intro > p:not(.kind) { max-width: 42ch; color: var(--mute); }
.app-steps button { min-height: 48px; }
.app-steps button:hover { background: var(--soft); }
.app-steps button[aria-pressed=true] { background: var(--accent); }
.app-steps button[aria-pressed=true] span, .app-steps button[aria-pressed=true] i { color: var(--white); }
.report-preview { background: var(--soft) !important; border-radius: 7px; padding: 14px !important; }
.sheet { border: 1px solid var(--line); border-radius: 5px; }
.works-more { margin-top: 18px; padding-top: 4px; }
.works-more span { font: 600 14px/1.4 var(--sans); text-transform: none; letter-spacing: 0; }
.works-more a { display: flex; align-items: center; min-height: 44px; }
.service-list { border-color: var(--line); }
.service-list a {
  grid-template-columns: minmax(0, 1fr) minmax(0, .62fr) 24px;
  gap: 12px 24px;
  padding: 21px 12px;
}
.service-name { font-size: clamp(23px, 3vw, 40px); }
.service-desc { font-size: 16px; }

.method { background: var(--night); color: var(--on-dark); border: 0; }
.method-intro { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 20px 56px; align-items: end; }
.method h2 { font-size: clamp(35px, 4.25vw, 62px); max-width: 18ch; }
.method-lead { margin: 0; color: var(--mist); }
.method-grid { gap: 0; border: 1px solid #8295c2; border-radius: var(--radius); padding: 0; }
.method-grid > div { padding: clamp(16px, 2.6vw, 34px); }
.method-grid > div + div { border-left: 1px solid #8295c2; background: #1d356b; border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0; }
.method-grid h3, .method-principles h3 { font-size: 23px; }
.method-grid li { border-color: #6278aa; color: var(--on-dark); font-size: 16px; }
.method-grid li::before { color: var(--mist); }
.method-principles, .method-cta { border-color: #6278aa; }
.method-principles span { color: var(--mist); font-size: 13px; }
.method-principles p, .method-cta { color: var(--mist); font-size: 16px; }
.method-link { font-size: 16px; }
.method-link:hover { color: var(--mist); }

.security { border: 0; background: var(--soft); }
.security-head h2, .split h2, .contact h2 { max-width: none; }
.security-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); border: 0; padding-top: 0; align-items: start; }
.security-person {
  background: var(--white);
  padding: clamp(18px, 3.3vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.security-person h3 { margin-bottom: 12px; }
.security-person p + p { margin-top: 12px; }
.security-person .button { margin-top: 22px; }
.security-list h3 { font-size: clamp(21px, 2vw, 28px); }
.security-list p, .security-legal { font-size: 16px; }
.split { padding-block: var(--section); align-items: center; }
.split#development { border: 0; }
.split-copy > .link { display: inline-flex; min-height: 44px; align-items: center; }
.demo {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(16px, 2.7vw, 32px);
  background: var(--soft);
}
.demo-head { font-size: 17px; }
.demo-head span { font: 400 13px/1.4 var(--sans); }
.demo-board { align-items: stretch; grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr); gap: 7px; margin-top: 16px; }
.demo-source, .demo-target { border: 1px solid var(--line); border-radius: 7px; padding: 12px; }
.demo-source small, .demo-target small { font: 600 12px/1.4 var(--sans); text-transform: none; letter-spacing: 0; }
.demo-source strong, .demo-target strong { font-size: 16px; }
.demo-source span, .demo-target span { font-size: 14px; }
.demo-target { background: var(--paper); }
.demo-target.has-record { background: var(--good); border-color: #799886; }
#demo-state { font-size: 15px; }
#demo-send { min-height: 44px; margin-top: 5px; color: var(--accent); font-weight: 600; }
.handoff, .support-aside { border-color: var(--line-dark); }
.handoff summary { min-height: 44px; }
.support-aside {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(17px, 3vw, 34px);
}
.contact { background: var(--accent); color: var(--on-dark); border: 0; }
.contact-grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
.contact h2 { margin-top: 0; font-size: clamp(39px, 5.2vw, 72px); }
.contact-grid > div > p:not(.kicker):not(.contact-byline), .contact-byline { color: var(--on-dark); }
.contact-byline { border-color: #96aaff; font-size: 15px; }
.contact form {
  min-width: 0;
  border: 1px solid #96aaff;
  border-radius: var(--radius);
  padding: clamp(16px, 3.5vw, 38px);
  background: var(--night);
}
.contact textarea, .contact input:not([type=checkbox]), .contact select,
.offer-form textarea, .offer-form input:not([type=checkbox]) {
  min-height: 46px;
  border: 1px solid var(--control);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.contact textarea, .offer-form textarea { min-height: 114px; }
.contact .consent, .offer-form .offer-consent { min-height: 44px; align-items: flex-start; font-size: 14px; }
.contact small, .contact #local-note { color: var(--mist); font-size: 13px; }
.contact [data-error] { color: #ffd1d6; }
.offer-status[data-error] { color: var(--danger); }
.contact .consent input, .offer-consent input { width: 18px; height: 18px; }
.site-foot { background: var(--night); padding-block: 32px; }
.site-foot .brand, .site-foot > .wrap > a:last-child { display: flex; min-height: 44px; align-items: center; }
.site-foot span, .site-foot p, .site-foot .contact-links a span { color: var(--mist); }
.site-foot p { font-size: 14px; }

/* Campaigns lead with a deliverable; the advisory page favors reading. */
.offer { padding-bottom: var(--section); }
.offer-back { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--accent); }
.offer-layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 24px clamp(24px, 5vw, 76px);
  padding-block: 25px var(--section);
  align-items: center;
}
.offer-intro h1 { font-size: clamp(40px, 4.65vw, 70px); margin: 0 0 19px; overflow-wrap: anywhere; }
.offer-intro p { max-width: 48ch; }
.offer-intro .offer-note { font-size: 15px; }
.offer-intro .offer-kicker { margin: 0 0 12px; }
.offer-artifact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 9px 25px #15233e0c;
}
.offer-artifact figcaption { align-items: center; font-weight: 700; line-height: 1.25; }
.offer-artifact small { font-size: 13px; }
.offer-artifact dt { color: var(--accent); font-size: 15px; }
.offer-artifact dd { font-size: 16px; }
.order-artifact { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.order-artifact small, .order-artifact .order-caption { color: var(--mist); }
.order-flow { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
.order-card {
  border: 1px solid #818fb7;
  border-radius: 7px;
  background: #1d356b;
  padding: 12px;
}
.order-card small { font-size: 13px; text-transform: none; letter-spacing: 0; text-align: left; }
.order-card strong { font-size: 17px; }
.order-card span { font-size: 14px; color: var(--mist); }
.order-target { background: var(--mist); color: var(--night); border-color: transparent; }
.order-target small, .order-target span { color: var(--night); }
.order-caption { font-size: 15px; }
.order-arrow { color: var(--mist); }
.offer-next, .offer-person, .offer-form-section, .stack-band {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 15px clamp(20px, 4.5vw, 68px);
  padding-block: clamp(25px, 4vw, 57px);
  border-color: var(--line-dark);
}
.offer-next h2, .offer-person h2, .stack-band h2 { font-size: clamp(29px, 3.4vw, 49px); }
.offer-next p + p { margin-top: 13px; }
.offer-next .offer-exclude { padding-top: 13px; }
.stack-cols h3, .stack-cols p { font-size: 16px; }
.offer-form-section {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(17px, 4vw, 54px);
}
.offer-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: clamp(13px, 2.4vw, 29px);
}
.offer-form label { font-size: 15px; }
.advisory-page .offer-intro .btn { margin-bottom: 1px; }
.advisory-page .offer-intro .offer-note { margin-top: 14px; }

/* Motion is feedback, not a requirement for seeing content. */
@media (prefers-reduced-motion: no-preference) {
  .hero-proof { animation: seat-frame 320ms var(--ease-out) both; }
  #demo-target.has-record { animation: confirm-record 200ms var(--ease-out) both; }
  @keyframes seat-frame { from { opacity: .78; transform: translateY(8px); } }
  @keyframes confirm-record { from { opacity: .68; transform: translateY(3px); } }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
  .hero h1 { font-size: clamp(42px, 6.1vw, 63px); }
  .case, .app-case { grid-template-columns: minmax(0, 1fr); }
  .section-head, .security-head, .security-grid, .split, .contact-grid, .method-intro,
  .offer-layout, .offer-next, .offer-person, .offer-form-section, .stack-band { grid-template-columns: minmax(0, 1fr); }
  .offer-layout { align-items: start; }
  .offer-intro h1 { max-width: 21ch; }
  .offer-artifact { width: 100%; max-width: 660px; }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 960px) {
  .app-case { grid-template-areas: "intro" "steps" "stage" "meta"; grid-template-rows: auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand { font-size: 22px; }
  .head-cta { margin-left: auto; padding-inline: 10px; font-size: 14px; }
  .advisory-page .head-cta { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 34px; gap: 23px; }
  .hero h1 { font-size: clamp(43px, 10.8vw, 66px); margin-bottom: 16px; }
  .hero .lead { max-width: 38ch; }
  .hero-actions { margin-top: 19px; }
  .hero .contact-links { margin-top: 7px; }
  .hero-proof { order: initial; }
  .hero-proof figcaption strong { font-size: 18px; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .trust span { padding: 9px 0; min-height: 42px; }
  .trust span + span { padding-left: 0; border-left: 0; border-top: 1px solid #96aaff; }
  .case-selector button:last-child { border-top-right-radius: 0; }
  .case-selector button:nth-child(2) { border-top-right-radius: calc(var(--radius) - 1px); }
  .case-selector button { min-height: 68px; }
  .case-selector button strong { font-size: 16px; }
  .case-selector button small { font-size: 12px; }
  .service-list a { grid-template-columns: minmax(0, 1fr) 20px; gap: 0 8px; padding: 14px 0; }
  .service-desc { display: block; grid-column: 1; font-size: 15px; margin-top: 5px; }
  .service-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .method-grid, .method-principles { grid-template-columns: minmax(0, 1fr); }
  .method-grid > div + div { border-left: 0; border-top: 1px solid #8295c2; border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
  .offer-intro h1 { font-size: clamp(35px, 9.5vw, 55px); max-width: none; }
  .offer-artifact figcaption { flex-wrap: wrap; gap: 4px 12px; }
  .order-flow { grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); }
  .order-arrow { transform: none; }
  .order-card { padding: 8px; }
}
@media (max-width: 380px) {
  .order-flow { grid-template-columns: minmax(0, 1fr); }
  .order-arrow { transform: rotate(90deg); }
  .contact-links { gap: 1px 12px; }
}
