/* PanMAS LLC — shared styles */

:root {
  --ink: #14202A;
  --ink-2: #4E5D69;
  --ink-3: #7A8792;
  --bg: #FFFFFF;
  --bg-alt: #F2F4F4;
  --line: #DFE4E4;
  --line-strong: #C3CBCB;
  --accent: #0E6A70;
  --accent-hover: #0A4F54;
  --accent-light: #8FD3D6;
  --measure: 64ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 1.5rem + 2.3vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 1.24rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 0; }

.lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 58ch; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(150%) blur(8px);
  position: sticky; top: 0; z-index: 10;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding: 18px 0;
}

.wordmark {
  font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.09em;
  color: var(--ink); text-transform: uppercase;
}
.wordmark:hover { color: var(--accent); text-decoration: none; }

.nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav a {
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  padding-bottom: 3px; border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  padding: 12px 22px; border-radius: 4px;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--ink); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Hero ---------- */

.hero { padding: 92px 0 88px; }

.hero-mark {
  font-size: clamp(3rem, 1.6rem + 6.4vw, 6.1rem);
  font-weight: 600; letter-spacing: 0.05em; line-height: 1;
  margin: 0 0 26px; color: var(--ink);
}

.hero-rule { height: 1px; background: var(--line-strong); margin: 0 0 30px; max-width: 720px; }

.hero h1 { max-width: 17ch; margin-bottom: 24px; }

/* one orchestrated page-load reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 620ms cubic-bezier(.22,.61,.36,1) forwards; }
.reveal-1 { animation-delay: 60ms; }
.reveal-2 { animation-delay: 170ms; }
.reveal-3 { animation-delay: 280ms; }
.reveal-4 { animation-delay: 380ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-line { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 46px; max-width: 64ch; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-2); }

/* ---------- Column grid (no cards) ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 0 48px;
}

.col { padding: 26px 0 0; border-top: 2px solid var(--ink); }
.col + .col { border-top-color: var(--ink); }
.col h3 { margin-bottom: 10px; }
.col p { color: var(--ink-2); font-size: 1rem; max-width: 40ch; }

.cols-loose { gap: 44px 48px; }
.cols-loose .col { border-top: 1px solid var(--line-strong); }

/* ---------- Dark product band ---------- */

.band { background: var(--ink); color: #E4E9EA; padding: 92px 0; }
.band h2, .band h3 { color: #fff; }
.band p { color: #B9C4C8; }
.band a { color: var(--accent-light); }
.band a:hover { color: #fff; }

.band-mark {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-light); margin: 0 0 18px;
}

.band-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.9fr);
  gap: 56px; align-items: start;
}

.attribution {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid #2C3A44;
  font-size: 0.9375rem; font-weight: 500; color: #fff;
}

/* ---------- Facts list ---------- */

.facts { margin: 0; }
.fact {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr);
  gap: 18px; padding: 13px 0; border-top: 1px solid var(--line);
  align-items: baseline;
}
.fact:first-of-type { border-top: 0; }
.fact dt { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--ink-3); }
.fact dd { margin: 0; font-size: 0.9875rem; }

.band .fact { border-top-color: #2C3A44; }
.band .fact dt { color: #8A99A2; }

/* ---------- Feature blocks ---------- */

.feature { padding: 40px 0; border-top: 1px solid var(--line); }
.feature:last-of-type { border-bottom: 1px solid var(--line); }
.feature-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 44px; }
.feature h3 { margin: 0; }
.feature p { color: var(--ink-2); margin: 0; }

/* ---------- Product entry ---------- */

.product {
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 4px; background: #fff; padding: 42px 44px;
}
.product-mark {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.product h2 { margin-bottom: 12px; }
.product-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 38px; margin-top: 34px; }
.product-split h4 { margin-bottom: 12px; }
.product-split ul { margin: 0; padding-left: 1.15em; color: var(--ink-2); font-size: 1rem; }
.product-split li { margin-bottom: 0.4em; }
.product-split p { color: var(--ink-2); font-size: 1rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.contact-grid h3 { margin-bottom: 8px; }
.contact-grid p { color: var(--ink-2); font-size: 1rem; margin-bottom: 8px; }
.mail { font-size: 1.0625rem; font-weight: 500; }

/* ---------- Page head ---------- */

.page-head { padding: 76px 0 44px; }
.page-head h1 { margin-bottom: 16px; }
.page-head .updated { color: var(--ink-3); font-size: 0.9375rem; margin: 0; }

/* ---------- Prose / legal ---------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.3125rem; margin-top: 2.2em; margin-bottom: 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; margin-bottom: 0.4em; }
.prose ul { padding-left: 1.2em; max-width: var(--measure); }
.prose li { margin-bottom: 0.5em; }
.prose strong { font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 62px 0 40px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(130px, 0.7fr)); gap: 40px; }
.footer-brand .wordmark { display: inline-block; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-2); font-size: 0.9375rem; max-width: 36ch; }
.footer-col h4 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9375rem; color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 0.875rem; color: var(--ink-3);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .band-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-inner { grid-template-columns: 1fr; gap: 12px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .cols { gap: 36px 40px; }
  .cols .col { border-top-width: 1px; border-top-color: var(--line-strong); }
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 56px; }
  .section { padding: 60px 0; }
  .band { padding: 62px 0; }
  .page-head { padding: 52px 0 32px; }
  .product { padding: 30px 24px; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .header-inner { padding: 14px 0; gap: 14px; }
  .nav { gap: 18px; }
  .wrap { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
