@font-face{font-family:"Poppins";font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/poppins-latin-300-normal.woff2) format("woff2");}
@font-face{font-family:"Poppins";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/poppins-latin-400-normal.woff2) format("woff2");}
@font-face{font-family:"Poppins";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/poppins-latin-500-normal.woff2) format("woff2");}
@font-face{font-family:"Poppins";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/poppins-latin-600-normal.woff2) format("woff2");}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");}
/* Martineau & Associates — WatchYourFish® site
   Plain CSS, no build step. Color scheme from the previous martineau.com: blue #3c7bb4, yellow #f3c317, dark grey #333, light grey #f1f1f1; Poppins. */

:root {
  --ink: #2a2a2a;          /* dark grey (old site #333); dark sections show RI imagery well */
  --ink-2: #383838;
  --ink-line: #4a4a4a;
  --paper: #ffffff;
  --paper-2: #f1f1f1;      /* old site light grey */
  --text: #333333;
  --muted: #5c5c55;
  --line: #d9d9d9;
  --blue: #3c7bb4;         /* old site blue */
  --blue-deep: #2e6396;
  --canary: #f3c317;       /* old site yellow */
  --on-dark: #f1f1f1;
  --on-dark-muted: #bdbdb6;
  --radius: 6px;
  --max: 1160px;
  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.22rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand span { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em; }
.brand small { display: block; font-weight: 400; font-size: .72rem; color: var(--on-dark-muted); letter-spacing: .04em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a, .nav button.dd {
  color: #fff; text-decoration: none; font-size: .93rem; padding: 8px 11px; border-radius: 4px;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav a:hover, .nav button.dd:hover { background: rgba(0,0,0,.14); color: #fff; }
.nav a[aria-current="page"], .nav button.dd[aria-current="page"] { color: var(--canary); }

.nav .cta { background: var(--canary); color: #211e1f; margin-left: 8px; font-weight: 600; }
.nav .cta:hover { background: #ffd43a; color: #211e1f; }
.has-dd { position: relative; }
.dd-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 230px; padding: 6px;
  background: var(--blue-deep); border: 1px solid rgba(0,0,0,.15); border-radius: var(--radius);
}
.has-dd:hover .dd-menu, .has-dd:focus-within .dd-menu, .has-dd.open .dd-menu { display: block; }
.dd-menu a { display: block; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 7px 12px; border-radius: 4px; font: inherit; }

/* Feature flag: coral content hidden unless <html class="show-coral"> (set in assets/js/config.js) */
[data-flag="coral"] { display: none !important; }
html.show-coral [data-flag="coral"] { display: revert !important; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.tight { padding: 48px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.dark p, .section.dark li { color: var(--on-dark-muted); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: #9cc6ec; }
.eyebrow { font-family: var(--mono); font-size: .99rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 12px; display: block; }
.dark .eyebrow, .hero .eyebrow { color: var(--canary); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 46em; }
.dark .lead { color: var(--on-dark-muted); }
.measure { max-width: 46em; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-dark); padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero p { color: var(--on-dark-muted); font-size: 1.12rem; }
.hero figure { margin: 0; }
.hero figure img, .hero figure video { border-radius: var(--radius); border: 1px solid var(--ink-line); }
.page-hero { background: var(--ink); color: var(--on-dark); padding: 56px 0 52px; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: var(--on-dark-muted); font-size: 1.12rem; max-width: 44em; margin: 0; }
.crumbs { font-family: var(--mono); font-size: .78rem; color: var(--on-dark-muted); margin-bottom: 14px; }
.crumbs a { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 4px; text-decoration: none; font-weight: 500; font-size: .98rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); color: #fff; }
.btn.ghost { border-color: #3b5269; color: var(--on-dark); }
.btn.ghost:hover { border-color: var(--on-dark); color: #fff; }
.btn.line { border-color: var(--line); color: var(--text); background: #fff; }
.btn.line:hover { border-color: var(--blue); color: var(--blue-deep); }

/* ---------- Grids & cards ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cols-2.center { align-items: center; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.dark .card { background: var(--ink-2); border-color: var(--ink-line); }
.card.link { text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.card.link:hover { border-color: var(--blue); }
.card .more { color: var(--blue-deep); font-weight: 500; font-size: .94rem; }
.card-img { margin: -26px -26px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16/10; background: var(--ink); }
.card-img img { width: 100%; height: 100%; object-fit: fill; }
.stat { border-left: 3px solid var(--canary); padding-left: 16px; }
.stat b { display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 500; color: #fff; }
.section:not(.dark) .stat b { color: var(--text); }
.stat span { font-size: .93rem; }

/* ---------- Figures ---------- */
figure.fig { margin: 0; }
figure.fig img, figure.fig video { border-radius: var(--radius); border: 1px solid var(--line); background: #000; width: 100%; }
.dark figure.fig img, .dark figure.fig video { border-color: var(--ink-line); }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
figcaption .tag { font-family: var(--mono); font-size: .74rem; color: var(--blue-deep); margin-right: 6px; letter-spacing: .04em; }
.dark figcaption { color: var(--on-dark-muted); }
.dark figcaption .tag { color: var(--canary); }
.fig-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fig-row.two { grid-template-columns: 1fr 1fr; }

/* ---------- Lists, tables ---------- */
ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { padding-left: 26px; position: relative; margin-bottom: .55em; }
ul.check li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--blue); box-shadow: 0 0 6px rgba(60,123,180,.6); }
.dark ul.check li::before { background: var(--canary); box-shadow: 0 0 6px rgba(243,195,23,.6); }
table.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.spec td:first-child { font-weight: 600; width: 26%; }
.table-scroll { overflow-x: auto; }
.badge { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; vertical-align: middle; margin-left: 6px; }
.badge.now { background: #e2edf7; color: var(--blue-deep); }
.badge.dev { background: #fdf6d6; color: #7a6510; }
.dark .badge.now { background: rgba(60,123,180,.3); color: #b9d6f0; }
.dark .badge.dev { background: rgba(243,195,23,.16); color: var(--canary); }
.callout { border-left: 3px solid var(--blue); background: var(--paper-2); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.mono { font-family: var(--mono); }

/* ---------- Video gallery ---------- */
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.vcard h3 { margin-top: 14px; font-size: 1.05rem; }
.vcard p { font-size: .94rem; color: var(--muted); }
.vcard .ref { font-family: var(--mono); font-size: .74rem; color: var(--blue-deep); }

/* ---------- News ---------- */
.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-item time { font-family: var(--mono); font-size: .84rem; color: var(--muted); padding-top: 3px; }
.news-item h3 { margin-bottom: .3em; }
.news-item p { margin: 0; color: var(--muted); }
.news-cat { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); }

/* ---------- Forms ---------- */
form.contact { display: grid; gap: 16px; }
form.contact label { font-size: .9rem; font-weight: 500; display: block; margin-bottom: 5px; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: .98rem; background: #fff; color: var(--text);
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note { font-size: .86rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 36px; font-size: .92rem; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--ink-line); margin-top: 40px; padding-top: 22px; font-size: .82rem; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .grid, .cols-2 { grid-template-columns: 1fr; gap: 36px; }
  .cols-3, .fig-row { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: 1fr 1fr; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .cols-3, .cols-4, .fig-row, .fig-row.two, .vgrid, form.contact .row { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Buttons keep their own colors inside dark sections */
.section.dark .btn.primary, .section.dark .btn.primary:hover { color: #fff; }
.section.dark .btn.ghost { color: var(--on-dark); }
.section.dark .btn.ghost:hover { color: #fff; }
html.show-coral .dd-menu a[data-flag="coral"] { display: block !important; }

/* Navigation collapses to a menu button below 1240px (9 items + CTA) */
.nav a, .nav button.dd { white-space: nowrap; }
@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--blue); border-bottom: 1px solid rgba(0,0,0,.15); padding: 10px 16px 18px; }
  .nav.open { display: flex; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
  .dd-menu { display: block; position: static; background: none; border: 0; padding: 0 0 0 14px; }
  .nav button.dd { text-align: left; width: 100%; }
}

/* WatchYourFish® logo with registered mark (the source artwork carries ™, so ® is set in HTML) */
.wyf-logo, .foot-logo { position: relative; display: inline-block; line-height: 0; }
.wyf-logo .reg, .foot-logo .reg { position: absolute; right: -.9em; bottom: .15em; line-height: 1; font-family: var(--sans); font-weight: 400; color: #0d96e4; }
.wyf-logo { width: min(460px, 82%); }
.wyf-logo .reg { font-size: clamp(.9rem, 2.2vw, 1.4rem); right: -1.1em; }
.foot-logo { width: 170px; margin-bottom: 6px; }
.foot-logo .reg { font-size: .8rem; }

/* Landing page */
/* Landing banner: same geometry as the previous martineau.com banner
   (full-width cover image, copy right-aligned and pushed toward the bottom: 360px top / 40px bottom padding,
   logo at 35% of the 1160px content width, 28px tagline; centered on phones).
   The picture is a real <img> element scaled like CSS "background-size: cover", centered. */
.banner-old { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.banner-inner { position: relative; }
.banner-inner { max-width: 1160px; width: 92%; margin: 0 auto; padding: 60px 4% 40px; }
.bannercopy { padding-top: 300px; text-align: right; }
.bannercopy h1 { margin: 0 0 10px; line-height: 0; }
.bannercopy .wyf-logo { width: 33%; margin-right: 2%; } /* 35% × 943/1000: logo artwork minus the ™ */
.bannercopy p { font-size: 28px; line-height: 36px; font-weight: 400; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
@media (max-width: 1000px) { .bannercopy { padding-top: 200px; } }
@media (max-width: 768px) {
  .bannercopy { padding-top: 150px; text-align: center; }
  .bannercopy .wyf-logo { width: 47%; margin-right: 0; }
  .bannercopy p { font-size: 22px; line-height: 28px; }
}
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: center; }
.team img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.team h3 { margin-bottom: .15em; }
.team .role { color: var(--blue-deep); font-weight: 500; font-size: .95rem; margin-bottom: .6em; }
.team p { font-size: .93rem; color: var(--muted); }
.limits { columns: 2; column-gap: 40px; }
.limits li { break-inside: avoid; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } .limits { columns: 1; } }

/* "Coming soon" marker: shown until SITE.showCoral is true */
.soon { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--canary); color: #211e1f; border-radius: 3px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
html.show-coral [data-flag="coral-soon"] { display: none !important; }

/* Mid-page call-to-action band (grey, not black) */
.cta-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .btns { justify-content: flex-end; }
@media (max-width: 980px) { .cta-band .btns { justify-content: flex-start; } }

/* Video sizing: square and wide clips side by side */
figure.fig video { aspect-ratio: auto; }
.fig.narrow { max-width: 560px; }

/* Compact news list (home page): same items as the News page, titles only */
[data-compact] .news-item { padding: 14px 0; }
[data-compact] .news-item h3 { font-size: 1.02rem; margin: 0; }
