/* Bricolage Grotesque, served from this site (fonts/, Open Font License beside it).
   Variable: weight 200–800 and optical size 12–96, so small text gets the
   sturdier text cut and headlines the tighter display cut automatically. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url("/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Palette from the Pistol Shrimp Mascot canvas */
  --deep: #0E1B2C;
  --deep-2: #15263A;
  --line: #2A3B4E;
  --coral: #F2542D;
  --ember: #C23B1C;
  --bubble: #6FD3E6;
  --foam: #F4F7F8;
  --mist: #9FB0C2;
  --slate: #5A6B7C;
  --peach: #FFE3D9;
  --white: #FFFFFF;

  /* One family for every role: the wordmark's Bricolage Grotesque */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Bricolage Grotesque', system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1160px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--deep);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--bubble); }
a:hover { color: #A9E8F2; }
:focus-visible { outline: 3px solid var(--bubble); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--coral); color: var(--deep); padding: 10px 16px;
  border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(14, 27, 44, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--foam); }
.brand:hover { color: var(--foam); }
.brand-mark { width: 52px; height: 52px; margin: -6px -4px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-labs { font-family: var(--font-display); font-weight: 500; font-size: 10px; letter-spacing: 0.42em; color: var(--coral); margin-top: 4px; }
.nav { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--mist); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 10px;
}
.nav a:hover { color: var(--foam); background: var(--deep-2); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.eyebrow--dark { color: var(--slate); }

.wordmark {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(52px, 7.4vw, 104px); line-height: 0.95; letter-spacing: -0.035em;
}
.word { white-space: nowrap; }
.i-dot { position: relative; display: inline-block; }
.i-dot::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); border-radius: 50%;
}
.i-dot--fill::after { top: 0.04em; width: 0.17em; height: 0.17em; background: var(--coral); }
.i-dot--ring::after { top: 0.03em; width: 0.15em; height: 0.15em; box-shadow: inset 0 0 0 0.035em var(--bubble); }

.hero-labs { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.labs { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: 0.42em; color: var(--coral); }
.rule { width: 48px; height: 2px; background: var(--line); }

.tagline { margin-top: 32px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; color: var(--foam); }
.lede { margin-top: 12px; max-width: 30em; color: var(--mist); text-wrap: pretty; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--coral); color: var(--deep); }
.btn--primary:hover { background: #FF6A44; color: var(--deep); }
.btn--ghost { color: var(--foam); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { color: var(--foam); background: var(--deep-2); }
.btn--dark { background: var(--deep); color: var(--foam); }
.btn--dark:hover { background: var(--deep-2); color: var(--foam); }

.hero-art { display: flex; justify-content: center; }
.snap { width: 100%; max-width: 600px; height: auto; overflow: visible; }

/* Snap animation: the claw jerks, a bubble bursts, small bubbles drift up */
.snap .claw { transform-box: view-box; transform-origin: 118px 188px; animation: claw 5s ease-in-out infinite; }
.snap .burst { transform-box: fill-box; transform-origin: center; animation: burst 5s ease-out infinite; }
.snap .bubbles { animation: drift 5s ease-out infinite; }

@keyframes claw {
  0%, 52% { transform: rotate(0); }
  56% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
  66%, 100% { transform: rotate(0); }
}
@keyframes burst {
  0%, 55% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.12); }
  70% { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(1.05); }
}
@keyframes drift {
  0%, 58% { opacity: 0; transform: translateY(16px); }
  68% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-24px); }
}
@media (prefers-reduced-motion: reduce) {
  .snap .claw, .snap .burst, .snap .bubbles { animation: none; }
}

/* Fact band */
.fact { background: var(--coral); color: var(--deep); }
.fact-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 48px; align-items: baseline; padding-top: 40px; padding-bottom: 40px; }
.fact-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.fact-text { font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; max-width: 40em; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; scroll-margin-top: 72px; }
.section--light { background: var(--foam); color: var(--deep); }
.section-title {
  margin-top: 12px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; color: var(--deep);
}
.section-title--light { color: var(--foam); }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.app {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 1px 0 #D5DEE5, 0 12px 32px -20px rgba(14, 27, 44, 0.35);
}
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
}
.app-icon--ct { background: var(--peach); color: #B8321A; }
.app-icon--in { background: #DDF4F8; color: #0F5E6E; }
.app-name { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.status {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--foam); color: var(--slate); font-size: 13px; font-weight: 600;
}
.app-desc { color: #3A4B5E; flex: 1; }
.app-link {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ember); font-weight: 600; text-decoration: none;
}
.app-link:hover { color: #962C13; text-decoration: underline; }
.arrow { width: 1em; height: 1em; margin-left: 6px; transition: transform 0.15s ease; }
.app-link:hover .arrow { transform: translateX(3px); }
.app-soon { min-height: 44px; display: flex; align-items: center; color: var(--slate); font-weight: 600; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.principles li { padding-top: 24px; border-top: 2px solid var(--line); }
.principles h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--foam); }
.principles p { margin-top: 8px; color: var(--mist); }

/* Contact */
.contact { background: var(--coral); color: var(--deep); }
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; max-width: 16em;
}
.contact-text { font-size: 18px; font-weight: 600; }
.contact .btn { margin-top: 16px; max-width: 100%; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--mist); }
.footer-tag { font-weight: 600; }

/* Phone and tablet */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-art { order: -1; }
  .snap { max-width: 420px; }
  .fact-inner { grid-template-columns: minmax(0, 1fr); }
  .apps, .principles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .brand-name { font-size: 17px; }
  .brand-mark { width: 44px; height: 44px; }
  .nav a { padding: 0 8px; font-size: 14px; }
  .nav li:nth-child(2) { display: none; }
}
