@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/OpenSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/OpenSans_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Open Sans"; font-weight: 800; font-display: swap; src: url("/assets/fonts/OpenSans_800ExtraBold.ttf") format("truetype"); }
:root {
  color-scheme: light;
  --navy: #1D1453;
  --cream: #FFEBD9;
  --blue: #0086FF;
  --peach: #FEBAB0;
  --coral: #F4847A;
  --yellow: #FED505;
  --font: "Open Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--navy); font: 18px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.label { font-size: 16px; font-weight: 700; margin: 0 0 28px; opacity: .85; }
.big { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; max-width: 26ch; margin: 0 0 32px; }
.big em { font-style: normal; font-weight: 800; }

/* Buttons */
.btn { display: inline-block; text-align: center; text-decoration: none; border-radius: 99px; padding: 16px 34px; font-size: 17px; font-weight: 700; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0070d6; }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #000; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px max(24px, env(safe-area-inset-left)); background: var(--navy); color: var(--cream); }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.bar nav a { font-weight: 700; font-size: 16px; text-decoration: none; }
.bar nav a:hover { color: var(--yellow); }
.brand img { width: 96px; }
.ig { justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; }
.ig:hover { color: var(--yellow); }

/* Hero: the whole illustration shows on wider screens */
.hero { position: relative; background: var(--navy); aspect-ratio: 2500 / 1600; display: grid; place-items: center; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-view { position: absolute; inset: 0 0 auto; height: min(100%, calc(100svh - 68px)); display: grid; place-items: center; }
.hero-text { position: relative; text-align: center; padding: 24px 16px; }
.hero h1, .h1-copy { color: #fff; font-size: min(7.2vw, 104px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0 auto 44px; text-shadow: 0 4px 30px rgba(29, 20, 83, .6); }
.hero h1 span, .h1-copy span { display: block; white-space: nowrap; }

/* Cursor spotlight: a soft, lopsided blob with a blue rim that follows the mouse
   and shows the artwork in an inverted palette */
.hero-spot, .hero-halo { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  --w: 560px; --h: 510px;
  -webkit-mask: url("/assets/img/blob.svg") no-repeat; mask: url("/assets/img/blob.svg") no-repeat;
  -webkit-mask-size: var(--w) var(--h); mask-size: var(--w) var(--h);
  -webkit-mask-position: calc(var(--x, 50%) - var(--w) / 2) calc(var(--y, 50%) - var(--h) / 2);
  mask-position: calc(var(--x, 50%) - var(--w) / 2) calc(var(--y, 50%) - var(--h) / 2); }
.hero-halo { z-index: 3; --w: 620px; --h: 566px; background: var(--blue); }
.hero-spot { z-index: 4; }
.hero.spot-on .hero-spot, .hero.spot-on .hero-halo { opacity: 1; }
.hero-spot .hero-art { filter: invert(1) hue-rotate(180deg) saturate(1.15); }
.hero-spot .h1-copy { color: var(--navy); text-shadow: none; }
.hero-view:not(.hero-spot .hero-view) { z-index: 2; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Everything below the banner sits on white */
main section { padding: clamp(64px, 8vw, 112px) 0; }
main section + section { padding-top: 0; }
.section-title { font-size: clamp(40px, 5vw, 64px); margin: 0 0 28px; }

/* What we make */
.values ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.values li { text-align: center; }
.values li img { width: 110px; margin: 0 auto 32px; }
.values h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 14px; }
.values li p { margin: 0 auto; max-width: 34ch; }

/* Apps: side by side, art on top */
.apps .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.app-art { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 24px; }
.art-ssm img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* The arm enters from the tile's top edge, so it reads as reaching in, not cut off */
.art-bunot { position: relative; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
/* Placed so the logo sits in the middle of the box; the arm reaches in from the top edge */
.art-bunot img { position: absolute; width: 92%; height: auto; max-width: none; left: -2%; top: -29%; }
.app { text-align: center; }
.app-head { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 12px; text-align: left; }
.app-icon { width: 56px; border-radius: 14px; }
.app h3 { font-size: clamp(26px, 2.6vw, 34px); }
.kind { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--blue); }
.app-body > p { margin: 0 auto 18px; max-width: 48ch; }
.links { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.soon { font-size: 15px; font-weight: 700; opacity: .6; }

/* Story */
.story, .contact { text-align: center; }
.story .big { font-size: clamp(26px, 3vw, 40px); max-width: 34ch; margin-left: auto; margin-right: auto; }
.story .big a { white-space: nowrap; color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.story .big em { color: var(--blue); }
.story p { max-width: 58ch; margin-left: auto; margin-right: auto; font-size: clamp(18px, 1.5vw, 20px); }

/* Contact */
.hello { font-size: clamp(56px, 10vw, 140px); margin: 0 0 20px; }
.contact .sub { font-size: clamp(20px, 2vw, 26px); margin: 0 0 12px; }
.email { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; margin: 0; }
.email a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.foot { border-top: 1px solid #ECE8F2; padding: 28px 0; font-size: 14px; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo-mask { display: block; width: 80px; aspect-ratio: 740 / 228; background: var(--navy);
  -webkit-mask: url("/assets/img/champ-logo.webp") no-repeat center / contain; mask: url("/assets/img/champ-logo.webp") no-repeat center / contain; }

@media (max-width: 900px) {
  .values ul { grid-template-columns: 1fr; gap: 48px; }
  .apps .wrap { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 640px) {
  .bar { grid-template-columns: auto 1fr auto; padding: 10px 16px; }
  .bar .brand { order: -1; }
  .bar nav { justify-content: flex-end; gap: 4px 14px; }
  .bar nav a { font-size: 14px; }
  .brand img { width: 70px; }
  .hero { aspect-ratio: 4 / 5; max-height: 88vh; }
  .hero-btns .btn { width: min(100%, 300px); }
  .btn { padding: 15px 26px; font-size: 16px; }
}

/* Easter egg: the Westie pops up from the bottom-right corner */
.foot .logo-mask { cursor: pointer; }
.woof { position: fixed; right: clamp(12px, 4vw, 48px); bottom: 0; z-index: 50; display: flex; flex-direction: column; align-items: flex-end;
  transform: translateY(110%); transition: transform .55s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; }
.woof.up { transform: translateY(18px); }
.woof img { width: clamp(110px, 14vw, 160px); border-radius: 28px; transform: rotate(-6deg); box-shadow: 0 8px 24px rgba(29, 20, 83, .25); }
.woof-bubble { position: relative; margin: 0 40px 14px 0; background: #fff; color: var(--navy); font-weight: 800; font-size: 18px; line-height: 1.3;
  padding: 14px 18px; border-radius: 18px; box-shadow: 0 0 0 2px var(--blue), 0 8px 24px rgba(29, 20, 83, .18); max-width: 240px; }
.woof-bubble small { display: block; font-weight: 400; font-size: 14px; margin-top: 4px; }
.woof-bubble::after { content: ""; position: absolute; right: 36px; bottom: -9px; width: 16px; height: 16px; background: #fff;
  transform: rotate(45deg); box-shadow: 2px 2px 0 0 var(--blue); }
@media (prefers-reduced-motion: reduce) { .woof { transition: opacity .3s; transform: translateY(18px); opacity: 0; } .woof.up { opacity: 1; } }
