/* helixbrass.com: a clean static rebuild of the original Mesmerize-theme design */

@font-face { font-family: "Muli"; src: url("../fonts/mulish-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Muli"; src: url("../fonts/mulish-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Muli"; src: url("../fonts/mulish-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Muli"; src: url("../fonts/mulish-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --teal: #009688;
  --teal-dark: #00766c;
  --blue: #2196f3;
  --ink: #3c424f;
  --text: #6b7c93;
  --pale: #f5fafd;
  --wide: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 16px/1.6 "Open Sans", Helvetica, Arial, sans-serif; color: var(--text); background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: "Muli", "Open Sans", Helvetica, Arial, sans-serif; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: 1.2em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; }

/* ---------- navigation ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 16px; flex-wrap: wrap; }
.nav img { height: 50px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 28px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font: 600 14px/1 "Open Sans", sans-serif; letter-spacing: .04em; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); }
@media (max-width: 600px) { .nav .wrap { justify-content: center; padding-top: 10px; } .nav ul { justify-content: center; gap: 4px 20px; } }

/* ---------- home hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: var(--teal-dark) url("../img/hero.webp") center / cover no-repeat;
  padding: 110px 20px 90px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .15); }
.hero > div { position: relative; }
.hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.15; }
.hero p { font-size: 1.25rem; margin-bottom: 1.4em; }
.button { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font: 600 15px/1 "Open Sans", sans-serif; letter-spacing: .04em; padding: 15px 34px; border-radius: 30px; }
.button:hover { background: #1976d2; }
.down { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 42px; height: 42px; display: grid; place-items: center; }
.down svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 3; }
@media (max-width: 767px) { .hero { background-image: url("../img/hero-mobile.webp"); background-position: 50% 0; } }

/* ---------- home sections ---------- */
.section { padding: 80px 0; }
.section.pale { background: var(--pale); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .media img, .split .media video { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.bleed-left { margin-left: calc((100vw - min(100vw, var(--wide))) / -2 - 20px); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.features h3 { margin-top: .8em; }
.center { text-align: center; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; margin-top: 40px; }
.trio img { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 6px; }
.feature-photo { display: grid; grid-template-columns: 7fr 5fr; align-items: center; background: #fff; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-photo > div { padding: 40px clamp(20px, 6vw, 110px); }
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quote img { max-width: 420px; margin: 0 auto; }
.quote h2 + p { font-size: 1.05rem; }
.email-line { font: 600 1.25rem/1.4 "Muli", sans-serif; color: var(--ink); }
.eyebrow { font: 600 .85rem/1.4 "Open Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: .6em; }
@media (max-width: 860px) {
  .split, .quote, .feature-photo { grid-template-columns: 1fr; gap: 32px; }
  .bleed-left { margin-left: 0; }
  .trio { grid-template-columns: 1fr; }
  .feature-photo > div { padding: 32px 20px; }
}
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-head { position: relative; background: var(--teal); color: #fff; text-align: center; padding: 96px 20px 120px; }
.page-head h1 { color: #fff; font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.wave path { fill: var(--pale); }
.page-body { background: var(--pale); padding: 50px 0 90px; }
.page-body .wrap { max-width: 780px; font-size: 1.1rem; }
.page-body h2 { font-size: 1.6rem; }

/* ---------- footer ---------- */
.footer { background: #fff; border-top: 1px solid #e6edf2; padding: 26px 0; font-size: .9rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--text); }

/* fixes */
.split > *, .quote > *, .feature-photo > * { min-width: 0; }
.quote img { width: 100%; }
main:has(.page-body) { background: var(--pale); }
@media (max-width: 600px) { .page-head { padding-top: 150px; } }
