/* Brand colours sampled from the official Migo wordmark */
:root {
  --blue: #23b2e7;
  --green: #34a04c;
  --yellow: #f0ba28;
  --red: #e15137;

  /* Darker shades for text (brand tones fail contrast as text on light backgrounds) */
  --blue-ink: #0a6d93;
  --green-ink: #22743a;
  --yellow-ink: #8a6200;
  --red-ink: #b23620;

  --ink: #172033;
  --ink-soft: #4f586b;
  --paper: #fbf9f4;
  --paper-2: #f3efe5;
  --card: #ffffff;
  --line: #e6e0d2;
  --wrap: 1160px;
  --display: "Fredoka", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; }
h1 { font-size: clamp(38px, 5vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 21px; margin-bottom: 8px; }

.draft-bar { background: #fff3c4; color: #6b5200; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }
.todo { background: #fff3c4; color: #6b5200; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251,249,244,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 600; color: var(--ink-soft); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px 6px; }
.nav-toggle span { display: block; width: 24px; height: 3px; border-radius: 3px; background: var(--ink); margin: 5px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons & links */
.btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; padding: 15px 28px; border-radius: 999px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2px var(--yellow); }
.btn-small { padding: 10px 20px; font-size: 15px; color: #fff !important; }
.link-arrow { font-weight: 700; color: var(--blue-ink); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow span { transition: transform .15s; }
.link-arrow:hover span { transform: translateX(4px); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* Hero */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hl { color: var(--red-ink); background: linear-gradient(transparent 72%, rgba(240,186,40,.45) 72%, rgba(240,186,40,.45) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: 19px; color: var(--ink-soft); margin: 24px 0 34px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px 20px 56px; }
.collage-arcs { position: absolute; inset: -6%; width: 112%; height: 112%; z-index: 0; }
.collage-arcs path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s cubic-bezier(.3,.7,.2,1) forwards; }
.collage-arcs path:nth-child(2) { animation-delay: .15s; }
.collage-arcs path:nth-child(3) { animation-delay: .3s; }
.collage-arcs path:nth-child(4) { animation-delay: .45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.collage { grid-template-columns: repeat(6, 1fr); }
.tile { position: relative; z-index: 1; grid-column: span 2; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(23,32,51,.45); aspect-ratio: 1; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; transition: opacity .8s ease; }
.tile img.enter { opacity: 0; }
.tile figcaption { position: absolute; z-index: 2; left: 8px; bottom: 8px; max-width: calc(100% - 16px); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:nth-child(3) { transform: translateY(28px); }
.tile:nth-child(5) { grid-column: 2 / span 2; }
.tile:nth-child(6) { grid-column: 4 / span 2; transform: translateY(28px); }
.tile:nth-child(3) { animation-delay: .08s; } .tile:nth-child(4) { animation-delay: .16s; }
.tile:nth-child(5) { animation-delay: .24s; } .tile:nth-child(6) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.live-chip { position: absolute; z-index: 2; left: 0; bottom: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 9px 14px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 24px -14px rgba(23,32,51,.4); }
.live { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .55; } }


/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--paper-2); }
.section-title { margin-bottom: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head p { color: var(--ink-soft); font-size: 18px; max-width: 420px; }

/* Brands */
.brand { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; }
.brand-logo { height: 46px; width: auto; max-width: 220px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; margin-bottom: 16px; }
.brand p { color: var(--ink-soft); margin: 14px 0 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 700; color: var(--ink-soft); background: var(--paper-2); padding: 4px 11px; border-radius: 999px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.shots img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 18px; border: 1px solid var(--line); transition: transform .25s; }
.shots img:hover { transform: scale(1.03); }
.brand-feature { display: grid; grid-template-columns: .8fr 1.4fr; gap: 40px; align-items: center; margin-bottom: 24px; padding: 36px; }
.brand-feature .brand-logo { height: 60px; max-width: 240px; }
.brand-feature p { font-size: 17px; margin-bottom: 0; }
.shots-3 { grid-template-columns: repeat(3, 1fr); margin: 0; }
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 36px; padding-top: 22px; border-top: 2px solid var(--ink); }
.facts dt { font-size: 14px; color: var(--ink-soft); }
.facts dd { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; }
.prose p { color: var(--ink-soft); font-size: 18px; margin-bottom: 18px; }
.prose strong { color: var(--ink); }
.how { margin-top: 30px; display: grid; gap: 18px; }
.how li { display: flex; gap: 16px; align-items: flex-start; color: var(--ink-soft); }
.how strong { display: block; color: var(--ink); font-size: 17px; }
.how-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }
.d-blue { background: var(--blue); } .d-yellow { background: var(--yellow); } .d-red { background: var(--red); } .d-green { background: var(--green); }


/* Careers */
.careers { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.careers-lead { color: var(--ink-soft); font-size: 18px; margin: 16px 0 30px; max-width: 460px; }
.jobs { display: grid; gap: 14px; }
.jobs li:not(.jobs-note) { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; }
.jobs h3 { font-size: 21px; margin: 10px 0 2px; }
.jobs p { color: var(--ink-soft); }
.job-tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.t-red { background: #fce6e1; color: var(--red-ink); } .t-blue { background: #e3f5fc; color: var(--blue-ink); }
.jobs-note { font-size: 13px; color: var(--ink-soft); padding-left: 4px; }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.cta-arcs { position: absolute; width: 380px; right: -90px; top: 50%; transform: translateY(-50%); opacity: .9; }
.cta-inner { position: relative; }
.cta h2 { max-width: 560px; }
.cta > .wrap > p { font-size: 19px; color: #c9cfdc; margin-top: 14px; max-width: 520px; }
.contact { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 56px; margin-top: 44px; }
.contact dt { font-size: 14px; color: #9aa3b8; margin-bottom: 4px; }
.contact dd { font-size: 18px; font-weight: 600; line-height: 1.5; }
.contact-wide { grid-column: 1 / -1; }
.ext { color: #8fd8f5; border-bottom: 2px solid rgba(143,216,245,.4); }
.ext:hover { border-color: #8fd8f5; }

/* Footer */
.footer { padding: 32px 0; font-size: 14px; color: var(--ink-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer img { height: 28px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .collage-arcs path { stroke-dashoffset: 0; }
}

/* Responsive */
@media (max-width: 920px) {
  .hero-inner, .about, .careers, .brand-feature { grid-template-columns: 1fr; gap: 36px; }
  .collage { max-width: 440px; margin: 0 auto; width: 100%; }
  .brand-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .cta-arcs { width: 240px; right: -110px; top: 70px; transform: none; opacity: .5; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .btn { width: auto; margin-top: 10px; padding: 12px 22px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 72px 0; }
  .brand, .brand-feature { padding: 22px; border-radius: 22px; }
  .shots-3 { gap: 8px; }
  .facts { gap: 12px 24px; }
  .facts dd { font-size: 24px; }
}

/* Mossdoom logo crop has a light grey backdrop; lift it to white */
.lg-moss { filter: brightness(1.08) contrast(1.05); }

/* Brand headings carry the logo image, so search engines read the brand name */
.brand-title { margin: 0; font-size: inherit; line-height: 0; }
.shop-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 15px; color: var(--blue-ink); margin: -8px 0 18px; }
.shop-link:hover span { transform: translate(2px,-2px); }
.shop-link span { transition: transform .15s; }
.brand-feature .shop-link { margin: 16px 0 0; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--blue-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 40px 22px 0; }
@media (max-width: 920px) { .faq { grid-template-columns: 1fr; gap: 24px; } }

/* Hero tiles stay as a soft placeholder until their first photo has loaded (no flash on refresh) */
.tile { background: linear-gradient(110deg, #f6f3ec 30%, #fdfcf9 50%, #f6f3ec 70%) 0 0 / 200% 100%; }
.js .tile:not(.ready) { animation: rise .7s cubic-bezier(.2,.8,.2,1) both, shimmer 1.2s linear infinite; }
.js .tile:not(.ready) figcaption { opacity: 0; }
.tile figcaption { transition: opacity .3s; }
.tile img:not([src]) { visibility: hidden; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Hero: the five brand logos are the core message */
.lead strong { color: var(--ink); }
.hero-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -10px 0 32px; }
.hero-logos a { display: grid; place-items: center; height: 58px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, transform .2s; }
.hero-logos a:hover { border-color: var(--ink); transform: translateY(-2px); }
.hero-logos img { height: 30px; width: auto; max-width: 120px; object-fit: contain; mix-blend-mode: multiply; }
.proof { margin-top: 26px; font-size: 15px; color: var(--ink-soft); }
.proof b { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 18px; }
.proof sup, .facts sup { font-size: 11px; }
.sep { margin: 0 6px; color: var(--line); }
.brand-proof { margin: 12px 0 -6px !important; font-size: 14px; font-weight: 700; color: var(--ink) !important; }
.brand-proof .star { color: var(--yellow); }
.brand-proof .sep { color: var(--ink-soft); }
.office { font-size: 16px !important; margin-top: 24px; }
.about .footnote { margin-top: 14px; }
.brand { scroll-margin-top: 90px; }
@media (max-width: 720px) {
  .hero-logos { gap: 8px; }
  .hero-logos a { height: 48px; padding: 0 10px; border-radius: 12px; }
  .hero-logos img { height: 24px; max-width: 96px; }
}
.proof .sep { color: var(--ink-soft); }
.hero h1 .hl { white-space: nowrap; }
