/* Scotiaderm public site. Tokens follow the original WordPress theme (Montserrat, grey display type,
   Scotiaderm red, teal Contact button, pale blue-grey bands). */
:root {
  --ink: #2a2a2a;
  --head: #65666b;
  --muted: #7a7b80;
  --red: #ad0d1d;
  --red-btn: #af0716;
  --red-dk: #8a0613;
  --teal: #1c6684;
  --teal-dk: #144d64;
  --green: #98c276;
  --green-dk: #6f9a4f;
  --mist: #f4f8f9;
  --mist2: #eef3f5;
  --paper: #f8f8f8;
  --line: #e3e8ea;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 40, 50, .05), 0 12px 32px -12px rgba(20, 40, 50, .14);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --hdr: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; font: 400 16px/1.75 Montserrat, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; }
sup { font-size: .45em; vertical-align: super; line-height: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.sec { padding: clamp(64px, 9vw, 110px) 0; }
.sec--mist { background: var(--mist); }
.sec--mist2 { background: var(--mist2); }
.sec--paper { background: var(--paper); }
.sec--line { border-top: 1px solid var(--line); }

/* Type */
.display { font-size: clamp(40px, 6vw, 70px); line-height: 1.12; letter-spacing: -.04em; color: var(--head); font-weight: 400; }
.display--md { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.03em; }
.h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.25; color: var(--head); letter-spacing: -.01em; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: var(--red); font-weight: 500; }
.h4 { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--head); }
.lede-red { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; color: var(--red); font-weight: 500; margin: 0 0 1em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .38em; text-transform: uppercase; color: var(--head); margin: 0 0 18px; line-height: 1.8; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--red); }
.eyebrow--red { color: var(--red); }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--red); white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 34px; border-radius: 60px; border: 1.5px solid transparent; font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red-btn); color: #fff; }
.btn--red:hover { background: var(--red-dk); color: #fff; box-shadow: 0 8px 20px -8px rgba(175, 7, 22, .55); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-dk); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--head); background: transparent; }
.btn--ghost:hover { color: var(--red); }
.btn--disabled { background: var(--line); color: var(--muted); cursor: default; }
.btn--disabled:hover { transform: none; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center-row { justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, .25); }
.hdr { display: flex; align-items: center; gap: 24px; height: var(--hdr); max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.hdr-logo img { height: 58px; width: auto; }
.hdr-logo { flex: none; margin-right: auto; }
.hdr-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hdr-nav li { position: relative; }
.hdr-nav > ul > li > a { display: block; padding: 10px 14px; font-size: 15px; font-weight: 500; color: #3a3a3a; text-decoration: none; position: relative; }
.hdr-nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.hdr-nav > ul > li > a:hover::after, .hdr-nav > ul > li > a[aria-current]::after { transform: scaleX(1); }
.hdr-nav > ul > li > a[aria-current] { color: var(--green-dk); }
.sub-toggle { display: none; }
.sub { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.sub a:hover { background: var(--mist); color: var(--red); }
.hdr-li a { display: grid; place-items: center; width: 40px; height: 40px; color: #3a3a3a; }
.hdr-li svg { width: 18px; height: 18px; }
.hdr-li a:hover { color: var(--teal); }
.hdr-cta { flex: none; min-height: 48px; padding: 12px 32px; }
.hdr-cta-m { display: none; }
.hdr-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 6px; background: var(--red-btn); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hdr-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  :root { --hdr: 76px; }
  /* backdrop-filter would make the header the containing block for the fixed menu panel */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .hdr-logo img { height: 46px; }
  .hdr-burger { display: flex; }
  .hdr-cta { display: none; }
  .hdr-nav { position: fixed; inset: var(--hdr) 0 0 0; background: #fff; overflow-y: auto; padding: 12px var(--gutter) 40px; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
  .hdr-nav.is-open { transform: none; visibility: visible; }
  .hdr-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .hdr-nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .hdr-nav > ul > li > a { flex: 1; padding: 16px 0; font-size: 18px; }
  .hdr-nav > ul > li > a::after { display: none; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--head); }
  .sub-toggle svg { width: 14px; transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; box-shadow: none; padding: 0 0 12px 8px; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; }
  .sub.is-open { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub:hover .sub.is-open { display: block; }
  .hdr-li { border-bottom: 0 !important; padding-top: 16px; }
  .hdr-cta-m { display: block; border-bottom: 0 !important; padding-top: 12px; }
  .hdr-nav > ul > li.hdr-cta-m > a { display: flex; width: 100%; padding: 14px 24px; color: #fff; font-size: 16px; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* Home hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); background: #eef1f2; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .72) 45%, rgba(255, 255, 255, .25) 100%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 56px); max-width: 1440px; }
.hero-text p { max-width: 560px; color: #3a3a3a; }
.hero-text .display { margin-bottom: 28px; }
.hero-small { font-size: 15px; font-weight: 500; }
.hero-products { width: 100%; max-width: 620px; justify-self: end; filter: drop-shadow(0 30px 40px rgba(28, 60, 80, .18)); animation: float-in 1s var(--ease) both .15s; }
@keyframes float-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .6)); }
  .hero-products { justify-self: center; max-width: 440px; }
}

/* Inner page hero */
.phero { position: relative; padding: clamp(70px, 10vw, 150px) 0 clamp(60px, 7vw, 100px); background: #e7e9ed var(--bg) no-repeat; background-position: var(--pos); background-size: cover; }
.phero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .78) 42%, rgba(255, 255, 255, 0) 75%); }
.phero-in { position: relative; }
.phero-in > * { max-width: 640px; }
.phero p { color: #3a3a3a; }
.phero--sky { background-color: #9ee5f9; background-size: auto 100%; }
.phero--sky::before { background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, 0) 70%); }
.phero--dark { background-color: #636469; }
.phero--dark::before { background: linear-gradient(90deg, rgba(40, 42, 48, .78) 0%, rgba(40, 42, 48, .45) 55%, rgba(40, 42, 48, .1) 100%); }
.phero--dark .display, .phero--dark .eyebrow { color: #fff; }
@media (max-width: 760px) {
  .phero { background-position: 70% center; }
  .phero::before { background: rgba(255, 255, 255, .82); }
  .phero--dark::before { background: rgba(40, 42, 48, .7); }
}

/* Story + problem cards */
.story { color: #3a3a3a; }
.story-turn { margin-top: 1.6em; font-weight: 500; color: var(--ink); }
.down-arrow { width: 40px; height: 110px; margin: 30px auto 0; color: #c9cdd0; }
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 60px); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.problem-card { overflow: hidden; display: flex; flex-direction: column; }
.problem-card img { aspect-ratio: 1024 / 538; object-fit: cover; width: 100%; }
.problem-body { padding: clamp(24px, 3vw, 40px); }
.stat { font-size: 21px; line-height: 1.45; font-weight: 600; color: #66676c; }
.stat strong { color: var(--red); }
@media (max-width: 760px) { .problem { grid-template-columns: 1fr; } }

/* Founders + team */
.founders { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.founders-lede { font-size: 18px; font-style: italic; color: var(--head); }
.founders-text .h3 { margin-top: 28px; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 14px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.ticks--cards li { background: #fff; border-radius: 12px; padding: 14px 18px 14px 50px; box-shadow: var(--shadow); }
.ticks--cards li::before { left: 20px; top: 1.45em; }
.founders-people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: #dfe5e8; margin-bottom: 16px; transition: transform .5s var(--ease); }
.person:hover img { transform: scale(1.015); }
.person h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.person-role { font-size: 14px; color: var(--muted); line-height: 1.5; }
.bio summary { cursor: pointer; font-weight: 600; color: var(--red); font-size: 14px; list-style: none; }
.bio summary::-webkit-details-marker { display: none; }
.bio summary::after { content: " +"; }
.bio[open] summary::after { content: " –"; }
.bio p { font-size: 15px; margin-top: 12px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
@media (max-width: 960px) { .founders { grid-template-columns: 1fr; } .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .founders-people, .team-grid { gap: 14px; } }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split--rev > :first-child { order: 0; }
.split-media { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.split-media img { width: 100%; max-width: 560px; }
.rounded { border-radius: var(--radius); }
.tube { max-height: 520px; width: auto !important; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 2; } }

/* Newsletter */
.nl-box { margin-top: 30px; padding: 26px; border-radius: var(--radius); background: var(--mist); }
.nl-title { font-weight: 600; color: var(--head); margin-bottom: 14px; }
.nl-row { display: flex; gap: 10px; }
.nl-row input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 1px solid #d5dbde; border-radius: 60px; background: #fff; }
.nl-row .btn { flex: none; }
@media (max-width: 480px) { .nl-row { flex-direction: column; } }

/* News */
.news-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 -4px; scrollbar-width: thin; }
.news-rail .ncard { scroll-snap-align: start; }
@media (min-width: 1100px) { .news-rail { grid-auto-columns: calc((100% - 66px) / 4); } }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.ncard a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.ncard a:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20, 40, 50, .06), 0 22px 40px -16px rgba(20, 40, 50, .25); color: var(--ink); }
.ncard-img { aspect-ratio: 4 / 3; background: var(--mist2); overflow: hidden; }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.ncard a:hover .ncard-img img { transform: scale(1.04); }
.ncard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ncard-date { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ncard h3 { font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--head); margin-bottom: 16px; }
.ncard-go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--red); }
.job-list { list-style: none; padding: 0; margin: 24px 0 0; }
.job-list a { display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: center; padding: 22px 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.job-list .ncard-date { margin: 0; }
@media (max-width: 640px) { .job-list a { grid-template-columns: 1fr; gap: 4px; } }

/* Post */
.post-head { padding: clamp(50px, 7vw, 90px) 0 clamp(24px, 3vw, 36px); background: var(--mist); }
.post-head .display { max-width: 980px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 5vw, 70px); padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(60px, 8vw, 100px); }
.post-img { width: 100%; max-width: 520px; border-radius: var(--radius); margin-bottom: 36px; box-shadow: var(--shadow); }
.prose { font-size: 17px; line-height: 1.8; max-width: 72ch; }
.prose h2, .prose h3 { font-size: 24px; color: var(--red); font-weight: 500; margin-top: 1.4em; }
.prose h5, .prose h4 { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--head); margin: 1.6em 0 .6em; }
.prose a { word-break: break-word; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .6em; }
.post-side h2 { margin-bottom: 16px; }
.post-side ul { list-style: none; padding: 0; margin: 0; position: sticky; top: calc(var(--hdr) + 20px); }
.post-side li a { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-side img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.post-side strong { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; }
.post-side em { font-style: normal; font-size: 12px; color: var(--muted); }
.post-side a:hover strong { color: var(--red); }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } }

/* Testimonials slider */
.ts { color: #fff; padding-bottom: clamp(70px, 9vw, 110px); }
.ts--teal { background: var(--teal); }
.ts--green { background: var(--green); }
.ts .h2 { color: #fff; margin: 0; }
.ts-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.ts-nav { display: flex; gap: 10px; }
.ts-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.ts-btn:hover { background: rgba(255, 255, 255, .15); }
.ts-btn svg { width: 20px; }
.ts-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; margin: -4px; }
.ts-track::-webkit-scrollbar { display: none; }
@media (max-width: 1000px) { .ts-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .ts-track { grid-auto-columns: 88%; } }
.ts-card { scroll-snap-align: start; margin: 0; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 16px; fill: #f5b301; }
.ts-card blockquote { margin: 0; font-size: 15px; line-height: 1.75; }
.ts-card blockquote[data-clamp] p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.ts-card.is-open blockquote[data-clamp] p { display: block; }
.ts-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; font-size: 14px; cursor: pointer; margin-top: 4px; }
.ts-card figcaption, .tcard figcaption { margin-top: auto; padding-top: 20px; }
.ts-card figcaption strong, .tcard figcaption strong { display: block; color: var(--head); }
.ts-card figcaption span, .tcard figcaption span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ts-all { margin: 28px 0 0; }
.ts-all a { color: #fff; font-weight: 600; text-decoration: none; }
.ts-all a:hover { text-decoration: underline; }

/* Testimonials page */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 40px; }
.tabs button { padding: 12px 26px; border: 0; background: none; font-weight: 600; font-size: 15px; color: var(--head); border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--green-dk); border-color: var(--green); }
.tgrid { columns: 3 300px; column-gap: 24px; }
.tcard { break-inside: avoid; margin: 0 0 24px; padding: 30px 28px; background: var(--mist); border-radius: var(--radius); display: flex; flex-direction: column; }
.tcard blockquote { margin: 0; font-size: 15px; line-height: 1.75; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.li-follow { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: #0a66c2; text-decoration: none; }
.li-follow svg { width: 28px; height: 28px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Forms */
.form { padding: clamp(24px, 3.5vw, 40px); }
.form-h { font-size: 24px; font-weight: 600; color: var(--head); margin: 0 0 4px; }
.form-sub { color: var(--muted); font-size: 15px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #3a3a3a; }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea, .edu-form input { width: 100%; padding: 13px 16px; border: 1px solid #d5dbde; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus, .nl-row input:focus, .edu-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28, 102, 132, .15); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--red); }
.field .err { color: var(--red); font-size: 13px; margin: 6px 0 0; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
fieldset { border: 0; padding: 0; margin: 8px 0 0; }
legend { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.form-msg:empty { display: none; }
.form-msg, .form-note { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.form-msg.is-ok, .form-note.is-ok { background: #e7f2df; color: #2f5a1a; }
.form-msg.is-err, .form-note.is-err { background: #fbe9e7; color: #8a0613; }
form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
form.is-done .field, form.is-done fieldset, form.is-done .grid2, form.is-done button[type=submit], form.is-done .estimate, form.is-done .nl-row { display: none; }
.estimate { font-size: 15px; color: var(--head); background: var(--mist); padding: 12px 16px; border-radius: 12px; }

/* Products */
.prod-list { display: grid; gap: clamp(40px, 6vw, 80px); }
.prod-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.prod-img { display: block; background: linear-gradient(160deg, #f6f9fa, #e9eff2); border-radius: 24px; padding: clamp(20px, 3vw, 40px); }
.prod-img img { max-height: 560px; width: auto; margin: 0 auto; transition: transform .5s var(--ease); }
a.prod-img:hover img { transform: translateY(-6px) rotate(-1deg); }
.prod-row--detail { grid-template-columns: .75fr 1.25fr; }
.callout { border-left: 3px solid var(--red); padding: 14px 20px; background: var(--mist); border-radius: 0 12px 12px 0; }
.callout strong { display: block; font-size: 34px; font-weight: 600; color: var(--red); line-height: 1.2; }
.callout--soft { border-color: var(--teal); font-size: 15px; }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.kit-card { padding: 28px; text-align: center; }
.kit-card img { max-height: 340px; width: auto; margin: 0 auto 20px; }
.kit-card h3 { font-size: 20px; font-weight: 600; color: var(--red); }
.kit-card p { font-size: 15px; }
@media (max-width: 860px) { .prod-row, .prod-row--detail { grid-template-columns: 1fr; } .prod-img img { max-height: 420px; } .kit-grid { grid-template-columns: 1fr; } }

/* Order */
.order { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.order-product { position: sticky; top: calc(var(--hdr) + 24px); background: linear-gradient(160deg, #f6f9fa, #e9eff2); border-radius: 24px; padding: clamp(20px, 3vw, 40px); }
.order-product img { max-height: 600px; width: auto; margin: 0 auto; }
.price { font-size: 26px; font-weight: 600; color: var(--red); }
.price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.order .form { margin-top: 30px; }
@media (max-width: 860px) { .order { grid-template-columns: 1fr; } .order-product { position: static; } .order-product img { max-height: 340px; } }

/* Education */
.edu-hero { padding: clamp(50px, 7vw, 90px) 0 0; background: linear-gradient(180deg, var(--mist), #fff); }
.edu-hero .display { max-width: 900px; }
.edu-lede { max-width: 640px; font-size: 18px; color: #3a3a3a; }
.edu-gate-sec { padding-top: 40px; }
.edu-gate { max-width: 560px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); text-align: center; }
.edu-logo { width: 190px; margin: 0 auto 24px; }
.edu-form { display: flex; gap: 10px; margin-top: 20px; }
.edu-form input { border-radius: 60px; padding-left: 20px; flex: 1; min-width: 0; }
.edu-form .btn { flex: none; white-space: nowrap; }
@media (max-width: 520px) { .edu-form { flex-direction: column; } }
.edu-outline { list-style: none; padding: 0; margin: 50px auto 0; max-width: 760px; counter-reset: c; }
.edu-outline li { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--head); }
.edu-outline span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.edu-outline em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.edu-lib { padding-top: 40px; }
.edu-feature video, .edu-card video { width: 100%; aspect-ratio: 16 / 9; background: #0e1a20; border-radius: var(--radius); }
.edu-meta { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.edu-meta .eyebrow { margin: 0; }
.edu-meta .h3 { margin: 0; }
.dur { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.edu-ch-h { margin-top: 64px; }
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.edu-card .eyebrow { margin: 14px 0 4px; font-size: 11px; }
.edu-card h3 { font-size: 17px; font-weight: 600; color: var(--head); margin: 0 0 2px; }
.edu-lock { margin-top: 50px; text-align: center; }
@media (max-width: 900px) { .edu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .edu-grid { grid-template-columns: 1fr; } .edu-outline li { grid-template-columns: 1fr auto; } .edu-outline span { grid-column: 1 / -1; } }

/* Footer */
.site-footer { background: #133f52; color: rgba(255, 255, 255, .85); padding: clamp(60px, 8vw, 100px) 0 0; }
.ftr { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 7vw, 110px); }
.ftr-quote { margin: 0; }
.ftr-quote blockquote { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.75; font-style: italic; font-weight: 300; color: #fff; }
.ftr-quote figcaption { margin-top: 18px; font-weight: 600; color: var(--green); }
.ftr-quote figcaption::before { content: "~ "; }
.ftr-logo { width: 200px; margin-bottom: 28px; }
.ftr-h { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.ftr-side .nl-row input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.ftr-side .nl-row input::placeholder { color: rgba(255, 255, 255, .55); }
.ftr-base { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(50px, 7vw, 80px); padding-top: 26px; padding-bottom: 30px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.ftr-base p { margin: 0; color: rgba(255, 255, 255, .6); }
.ftr-base nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ftr-base a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.ftr-base a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) { .ftr { grid-template-columns: 1fr; } }

/* 404 */
.nf { padding: clamp(80px, 12vw, 160px) 0; }

/* Reveal on scroll (only when JS has marked the page; never hides content without it) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Downloadable documents */
.docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.docs a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 16px; align-items: start; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.docs a:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.docs-i { width: 32px; height: 40px; color: var(--red); }
.docs-t strong { display: block; font-size: 16px; font-weight: 600; color: var(--head); line-height: 1.35; }
.docs-t span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.docs-t em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.docs-go { font-size: 18px; color: var(--red); transition: transform .25s var(--ease); }
.docs a:hover .docs-go { transform: translateY(3px); }
.order-docs-h, .split .docs { margin-top: 40px; }
.order .docs, .split .docs { grid-template-columns: 1fr; }
.order-docs-h + .docs, .h4 + .docs { margin-top: 14px; }

/* Where to buy */
.shops { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.shop { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; }
.shop h3 { font-size: 22px; font-weight: 600; color: var(--head); margin: 0 0 8px; }
.shop address { font-style: normal; color: #3a3a3a; line-height: 1.6; margin-bottom: 22px; }
.shop-note { display: inline-block; align-self: flex-start; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: #e7f2df; color: #2f5a1a; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.shop-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; }
.shop-links .btn { min-height: 46px; padding: 10px 22px; font-size: 14px; }
.shop--ask { border: 1.5px dashed #c9d3d7; border-radius: var(--radius); background: transparent; }
.shop--ask p { color: #3a3a3a; }
.shop--ask .link-arrow { margin-top: auto; }

/* Customer account and online ordering */
.hdr-acct a { font-size: 15px; }
.acct-hero { padding: clamp(40px, 6vw, 70px) 0 clamp(20px, 3vw, 30px); background: var(--mist); }
.acct-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.acct-top .display { margin: 0; }
.acct-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.acct-nav a, .acct-nav button { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--head); text-decoration: none; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.acct-nav a[aria-current] { background: var(--teal); border-color: var(--teal); color: #fff; }
.acct-nav form { margin: 0; }
.acct-nav button { background: none; border-color: transparent; color: var(--muted); }
.acct-sec { padding-top: clamp(30px, 4vw, 50px); }
.acct-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.acct-card { padding: clamp(24px, 3.5vw, 40px); }
.acct-card .h3 { margin-bottom: 8px; }
.acct-sent { max-width: 640px; }
.form-plain { margin-top: 18px; }
.acct-status { margin-bottom: 30px; }
.acct-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; margin-bottom: 36px; }
.acct-cta p { margin: 0; }
.acct-h { margin: 0 0 14px; }
.acct-empty { padding: 30px 0; color: var(--muted); border-top: 1px solid var(--line); }
.acct-orders { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.acct-orders a { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 16px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.acct-orders a:hover { background: var(--mist); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mist2); color: var(--head); white-space: nowrap; }
.pill--paid, .pill--shipped { background: #e7f2df; color: #2f5a1a; }
.pill--awaiting_payment, .pill--invoice { background: #fdf1dc; color: #7a4d06; }
.pill--cancelled { background: #fbe9e7; color: #8a0613; }
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.shop-main { display: grid; gap: 24px; }
.shop-line { display: grid; grid-template-columns: 80px minmax(0, 1fr) 120px; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.shop-line img { width: 80px; height: 120px; object-fit: contain; background: var(--mist); border-radius: 10px; padding: 6px; }
.shop-line-t strong { display: block; color: var(--head); }
.shop-line-t span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.shop-line-t em { display: block; margin-top: 4px; font-style: normal; font-weight: 600; color: var(--red); }
.shop-qty { margin: 0; }
.pay-opts { display: grid; gap: 12px; margin-bottom: 20px; }
.pay-opt { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--teal); background: #f2f8fa; }
.pay-opt input { margin-top: 5px; accent-color: var(--teal); }
.pay-opt strong { display: block; color: var(--head); }
.pay-opt em { display: block; font-style: normal; font-size: 14px; color: var(--muted); }
.shop-sum { position: sticky; top: calc(var(--hdr) + 20px); padding: 28px; }
.shop-sum dl, .ov-items { margin: 14px 0; }
.shop-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; }
.shop-sum dt, .shop-sum dd { margin: 0; }
.shop-sum dd { text-align: right; font-variant-numeric: tabular-nums; }
.shop-sum .tot { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; font-size: 18px; color: var(--head); }
.order-view { padding: clamp(24px, 3.5vw, 40px); }
.ov-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ov-items { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ov-items th, .ov-items td { padding: 10px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.ov-items th:first-child, .ov-items td:first-child { text-align: left; }
.ov-items th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ov-items tfoot td { border-bottom: 0; padding: 6px; }
.ov-items .tot td { font-weight: 700; font-size: 18px; color: var(--head); border-top: 1px solid var(--line); padding-top: 12px; }
.ov-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.ov-meta .h4 { margin-bottom: 6px; }
@media (max-width: 960px) { .shop, .acct-split { grid-template-columns: 1fr; } .shop-sum { position: static; } }
@media (max-width: 560px) { .shop-line { grid-template-columns: 60px minmax(0, 1fr); } .shop-line img { width: 60px; height: 90px; } .shop-qty { grid-column: 1 / -1; } .acct-orders a { grid-template-columns: 1fr auto; } .ov-meta { grid-template-columns: 1fr; } }
