:root {
  color-scheme: light;
  --white: #FFFFFF;
  --mist: #F4F7FA;
  --line: #DFE6EC;
  --navy: #0F2A43;
  --navy-deep: #0A1F33;
  --slate: #4A5B6E;
  --muted: #7B8A98;
  --teal: #0E8B7F;
  --teal-ink: #0B7369;
  --teal-light: #3CC8B9;
  --on-navy: #F4F7FA;
  --on-navy-soft: #B4C2CF;
  --font: "SF Pro Display", -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.28,.11,.32,1);
  --nav-h: 52px;
  --gutter-l: max(22px, env(safe-area-inset-left, 0px));
  --gutter-r: max(22px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font-family: var(--font); font-size: 17px; line-height: 1.47;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1040px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(72px, 10vw, 120px); }
.center { text-align: center; }

/* Type scale */
.display { font-size: clamp(44px, 7.4vw, 88px); line-height: 1.05; font-weight: 600; letter-spacing: -0.032em; text-wrap: balance; }
.headline { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.026em; text-wrap: balance; }
.headline.sm { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; }
.title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.16; font-weight: 600; letter-spacing: -0.018em; text-wrap: balance; }
.lede { font-size: clamp(19px, 2vw, 26px); line-height: 1.26; letter-spacing: -0.01em; color: var(--slate); text-wrap: balance; }
.lede.sm { font-size: clamp(17px, 1.6vw, 21px); }
.eyebrow { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.01em; color: var(--teal-ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.pill {
  display: inline-block; padding: 11px 22px; border: 1px solid var(--teal-ink); border-radius: 980px;
  background: var(--teal-ink); color: var(--white); font: 500 16px/1.2 var(--font);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.pill:hover { background: var(--navy); border-color: var(--navy); }
.pill.ghost { background: transparent; color: var(--teal-ink); }
.pill.ghost:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--white); }
.dark .pill { background: var(--teal-light); border-color: var(--teal-light); color: var(--navy); }
.dark .pill:hover { background: var(--white); border-color: var(--white); }
.dark .pill.ghost { background: transparent; color: var(--teal-light); }
.dark .pill.ghost:hover { background: var(--teal-light); color: var(--navy); }

/* Global nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
body.product .nav { position: relative; top: auto; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
.brand img { display: block; height: 30px; width: auto; mix-blend-mode: multiply; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 13px; color: var(--slate); height: 100%; }
.item { display: flex; align-items: center; height: 100%; }
.item > a { transition: color .2s; }
.item > a:hover, .item.open > a { color: var(--navy); }
.item > a.pill { padding: 6px 14px; font-size: 13px; color: var(--white); }
.menu { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px; color: var(--navy); }
.menu svg { display: block; width: 100%; height: 100%; }
.menu path { transition: transform .3s var(--ease); transform-origin: center; }
.menu[aria-expanded="true"] path:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] path:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Flyout menu, drops down like the apple.com nav */
.fly {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .36s var(--ease), visibility 0s .36s;
  box-shadow: 0 30px 40px -30px rgba(15,42,67,.2);
}
.item.open .fly { clip-path: inset(0 0 -60px 0); visibility: visible; transition: clip-path .4s var(--ease), visibility 0s; }
.fly-in { display: flex; flex-wrap: wrap; gap: 20px clamp(40px, 7vw, 90px); padding-block: 34px 50px; }
.fly-col { opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
.item.open .fly-col { opacity: 1; transform: none; transition: opacity .35s .1s, transform .4s .1s var(--ease); }
.fly small { display: block; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.fly-big a { display: block; padding-block: 3px; font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.016em; color: var(--navy); }
.fly-col:not(.fly-big) a { display: block; padding-block: 4px; font-size: 13px; font-weight: 500; color: var(--navy); }
.fly a:hover { color: var(--teal-ink); }
.scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(15,42,67,.14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transition: opacity .32s var(--ease);
}
.scrim.on { opacity: 1; }


footer { background: var(--mist); font-size: 12px; color: var(--slate); }
.foot-in { display: grid; gap: 16px; padding-block: 34px 30px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.foot-cols strong { display: block; margin-bottom: 8px; font-weight: 600; color: var(--navy); }
.foot-cols a { display: block; padding-block: 3px; }
.foot-cols a:hover { color: var(--navy); text-decoration: underline; }

/* Blog: an article-ready landing page using Cerion's existing visual language. */
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 18px; background: var(--navy); color: var(--white); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.item > a[aria-current="page"] { color: var(--teal-ink); font-weight: 600; }
.blog-hero { padding-block: clamp(64px, 8vw, 100px) clamp(52px, 7vw, 76px); text-align: center; }
.blog-hero .display { margin-block: 16px 18px; }
.blog-hero .lede { margin-inline: auto; max-width: 30em; }
.blog-topics { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 0; margin-top: 32px; color: var(--slate); font-size: 13px; }
.blog-topics li { display: flex; align-items: center; }
.blog-topics li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--teal); margin-inline: 16px; }
.section-label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-block: 0 18px; }
.section-label h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.section-label > span { font-size: 13px; color: var(--slate); }
.blog-empty { display: grid; grid-template-columns: 1.12fr 1fr; border-radius: 24px; overflow: hidden; background: var(--mist); }
.blog-empty-copy { padding: clamp(28px, 4vw, 48px); }
.blog-kicker { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: var(--teal-ink); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.blog-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.blog-empty-copy h3 { margin-bottom: 22px; }
.blog-empty-copy > p:not(.blog-kicker) { font-size: 16px; line-height: 1.6; color: var(--slate); max-width: 29em; }
.blog-empty-copy > p + p { margin-top: 12px; }
.text-link { display: inline-flex; gap: 12px; align-items: baseline; margin-top: 30px; color: var(--teal-ink); font-size: 14px; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.blog-art { position: relative; min-height: 430px; overflow: hidden; background: var(--navy); }
.art-topline, .art-bottomline { position: absolute; left: 28px; right: 28px; display: flex; justify-content: space-between; gap: 12px; font: 500 10px/1.4 var(--mono); letter-spacing: .09em; color: var(--on-navy-soft); }
.art-topline { top: 28px; padding-bottom: 16px; border-bottom: 1px solid rgba(244,247,250,.2); }
.art-topline span:first-child { color: var(--on-navy); letter-spacing: .18em; }
.art-bottomline { bottom: 28px; }
.note-sheet { position: absolute; width: 216px; height: 276px; top: 50%; left: 50%; border-radius: 4px; }
.note-sheet-back { background: var(--teal); transform: translate(-38%, -46%) rotate(9deg); }
.note-sheet-front { display: flex; flex-direction: column; padding: 28px; background: var(--white); box-shadow: 0 16px 40px rgba(0,0,0,.16); transform: translate(-56%, -51%) rotate(-8deg); }
.note-sheet svg { width: 34px; height: 38px; margin-bottom: 26px; }
.note-line { width: 100%; height: 4px; background: var(--line); margin-top: 10px; }
.note-line-title { width: 88%; height: 9px; margin-block: 0 10px; background: var(--navy); }
.note-line-short { width: 68%; }
.note-rule { width: 28px; height: 3px; background: var(--teal); margin-top: auto; }
.note-caption { font-size: 8px; font-weight: 500; color: var(--slate); margin-top: 10px; }
.blog-practices { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 80px); padding-block: clamp(72px, 9vw, 108px); }
.practices-intro { align-self: start; }
.practices-intro .eyebrow { font-size: 15px; margin-bottom: 16px; }
.practices-intro h2 { margin-bottom: 20px; }
.practices-intro .lede { max-width: 20em; }
.practice-link { display: grid; grid-template-columns: 28px 1fr; gap: 14px; border-top: 1px solid var(--line); padding-block: 22px 24px; }
.practice-link:last-child { border-bottom: 1px solid var(--line); }
.practice-number { color: var(--teal-ink); font: 400 12px/1.5 var(--mono); padding-top: 4px; }
.practice-link h3 { font-size: 20px; letter-spacing: -.015em; font-weight: 600; margin-bottom: 7px; }
.practice-link p { font-size: 15px; line-height: 1.5; color: var(--slate); max-width: 25em; }
.practice-cta { display: inline-block; font-size: 12px; color: var(--teal-ink); margin-top: 13px; font-weight: 500; }
.practice-cta > span { margin-left: 8px; }
.practice-link:hover h3 { color: var(--teal-ink); }
.practice-link:hover .practice-cta { text-decoration: underline; text-underline-offset: 4px; }
.blog-contact { padding-block: 56px 64px; background: var(--mist); text-align: center; }
.blog-contact .lede { margin-block: 14px 24px; }
footer { border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .blog-empty { grid-template-columns: 1fr; }
  .blog-art { min-height: 380px; }
  .blog-empty-copy { padding: 32px; }
  .blog-empty-copy h3 br { display: none; }
  .blog-practices { grid-template-columns: 1fr; gap: 32px; }
  .practices-intro .lede { max-width: 28em; }
}
@media (max-width: 520px) {
  .blog-hero { padding-block: 52px 48px; }
  .blog-hero .display { font-size: clamp(40px, 10.5vw, 54px); }
  .desktop-break { display: none; }
  .blog-topics { gap: 10px 18px; max-width: 310px; margin-inline: auto; }
  .blog-topics li + li::before { display: none; }
  .section-label > span { font-size: 12px; }
  .blog-empty-copy { padding: 28px 24px 32px; }
  .blog-art { min-height: 370px; }
  .art-topline, .art-bottomline { left: 22px; right: 22px; font-size: 9px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .menu { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    padding: 12px var(--gutter-r) 24px var(--gutter-l); background: var(--white);
    font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--navy);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s var(--ease), visibility 0s .4s;
  }
  .nav-links.open { clip-path: inset(0); visibility: visible; transition: clip-path .45s var(--ease), visibility 0s; }
  .item { height: auto; opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .3s; }
  .nav-links.open .item { opacity: 1; transform: none; transition: opacity .4s calc(.08s + var(--i) * .04s), transform .5s calc(.08s + var(--i) * .04s) var(--ease); }
  .item > a { display: block; width: 100%; padding-block: 9px; }
  .item > a.pill { margin-top: 16px; padding: 13px 16px; font-size: 17px; letter-spacing: 0; text-align: center; }
  .fly { display: none; }
}
