/* OmnySync Group LLC | site styles v0.3
   Layout precedent: large-firm corporate pattern (flat dark canvas, statement type, pill actions,
   rounded media panels, tabbed overview, card carousel, sitemap footer).
   Identity: OmnySync navy + single coral accent (#F08A5D, from the OmnySync logo). */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #0B1220;
  --panel: #111A2E;
  --panel-2: #0E1628;
  --line: #233049;
  --line-strong: #3A4767;
  --text: #EEF2F7;
  --text-2: #B4BFD0;
  --text-3: #8E9BB3;
  --coral: #F08A5D;
  --coral-hover: #F5A77F;
  --coral-ink: #2A1408;
  --coral-soft: rgba(240, 138, 93, 0.12);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 32px;
  --header-h: 84px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--coral); text-underline-offset: 3px; }
a:hover { color: var(--coral-hover); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 980px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--coral); color: var(--coral-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.tm { font-weight: 400; margin-left: 1px; letter-spacing: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, 0.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(11, 18, 32, 0.86); backdrop-filter: blur(8px); } }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-logo { width: 52px; height: 52px; flex: none; }
.brand-name { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a { display: block; padding: 8px 14px; color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; border-radius: 999px; }
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav a[aria-current="true"] { color: var(--text); }
.header-actions { display: flex; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1.5px solid var(--text); border-radius: 50%; color: var(--text); transition: border-color .15s, color .15s;
}
.icon-btn:hover { color: var(--coral); border-color: var(--coral); }
.icon-btn-accent { border-color: var(--coral); color: var(--coral); }
.icon-btn-sm { width: 40px; height: 40px; border-width: 1px; border-color: var(--line-strong); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 72px; --gutter: 22px; }
  .header-inner { gap: 14px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; order: -1;
    width: 40px; height: 44px; margin-left: -8px; background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; content: ""; transition: transform .2s; }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; width: 16px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; width: 24px; transform: rotate(-45deg); }
  .brand-logo { width: 44px; height: 44px; }
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 6px var(--gutter) 18px; }
  .site-nav a { padding: 14px 0; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; }
  .no-js .site-nav { position: static; display: block; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Shared ---------- */
.eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 18px; }
.label-head { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-bottom: 18px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.ruled { border-top: 1px solid var(--line); }
.statement { font-size: clamp(1.75rem, 1.15rem + 2.4vw, 3rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-2); margin-bottom: 28px; }
.statement-em { color: var(--text); }
.statement-head { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); margin-bottom: 18px; }
.body-lg { font-size: 1.15rem; color: var(--text-2); max-width: 60ch; margin-bottom: 32px; }
.body-copy { color: var(--text-2); }
section h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 28px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.pill-solid { background: var(--coral); color: var(--coral-ink); }
.pill-solid:hover { background: var(--coral-hover); color: var(--coral-ink); }
.pill-light { background: var(--text); color: var(--bg); }
.pill-light:hover { background: #fff; color: var(--bg); }
.pill-outline { border-color: var(--text); color: var(--text); }
.pill-outline:hover { border-color: var(--coral); color: var(--text); }
.pill-lg { min-height: 58px; font-size: 1.1rem; padding: 0 32px; white-space: normal; overflow-wrap: anywhere; }
.ext { color: var(--text-3); }

.media-panel { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 5.6vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 17ch; margin-bottom: 32px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--text-2); max-width: 46ch; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.hero-panel { padding: 28px 28px 18px; }
.chain-wide { width: 100%; }
.chain-tall { display: none; width: 100%; max-width: 300px; margin: 0 auto; }
.hero-panel figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); }
@media (max-width: 900px) { .hero-row { flex-direction: column; align-items: flex-start; gap: 28px; } }
@media (max-width: 640px) {
  .chain-wide { display: none; }
  .chain-tall { display: block; }
  .hero-panel { padding: 22px 16px 14px; }
  .actions .pill { width: 100%; justify-content: center; }
  .actions { width: 100%; }
}

/* ---------- Tabs (What we do) ---------- */
.tablist { display: flex; gap: 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  background: none; border: 0; padding: 0 0 14px; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; letter-spacing: -0.02em;
  color: var(--text-3); border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--coral); border-bottom-color: var(--coral); }
.no-js .tablist { display: none; }
.tabpanel[hidden] { display: none; }
.no-js .tabpanel + .tabpanel { margin-top: 56px; }

.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.feature-media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.media-mark img { width: 42%; max-width: 220px; }
.media-code { justify-content: flex-start; padding: 0 8%; }
.media-code pre { margin: 0; font-family: var(--mono); font-size: clamp(0.78rem, 0.6rem + 0.6vw, 1rem); line-height: 1.75; color: var(--text-2); white-space: pre; }
.media-code .k { color: var(--text); }
.media-code .s { color: var(--coral); }
.feature-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); margin-bottom: 18px; }
.feature-copy p { color: var(--text-2); font-size: 1.08rem; }
.status { display: flex; align-items: center; gap: 10px; font-size: 0.9rem !important; color: var(--text) !important; margin: 4px 0 28px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.status-open { background: var(--text-2); box-shadow: 0 0 0 4px rgba(180, 191, 208, 0.12); }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Card carousel (RYMCOR) ---------- */
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.carousel-controls { display: none; align-items: center; gap: 10px; flex: none; }
.circle-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: none; border: 1.5px solid var(--text); color: var(--text); cursor: pointer;
}
.circle-btn:hover { border-color: var(--coral); color: var(--coral); }
.circle-btn:disabled { border-color: var(--line-strong); color: var(--line-strong); cursor: default; }
.counter { font-size: 0.95rem; font-weight: 600; margin-left: 14px; font-variant-numeric: tabular-nums; }

.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-top {
  aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 20px 22px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; background-color: var(--panel-2); border-bottom: 1px solid var(--line);
}
.card-num { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--coral); }
.card-body { padding: 22px 22px 26px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.25; }
.card-body p { color: var(--text-2); font-size: 0.98rem; margin: 0; }

@media (max-width: 1000px) {
  .js .carousel-controls { display: flex; }
  .track {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 340px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none;
  }
  .track::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
}
@media (max-width: 640px) { .section-top { flex-direction: column; align-items: flex-start; } }

.disclosure { margin-top: 32px; border-left: 2px solid var(--coral); padding: 2px 0 2px 18px; max-width: 80ch; }
.disclosure p { margin: 0 0 8px; color: var(--text-2); font-size: 0.98rem; }
.disclosure p + p { color: var(--text-3); font-size: 0.9rem; }

/* ---------- COR Proof detail ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; margin-top: 36px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.body-copy p { font-size: 1.08rem; }
.callout { margin-top: 28px; background: var(--coral-soft); border: 1px solid rgba(240, 138, 93, 0.35); border-radius: var(--radius); padding: 20px 22px; }
.callout-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.callout p:last-child { color: var(--text); margin: 0; }
.link-stack { display: grid; gap: 12px; }
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
  transition: border-color .15s;
}
.link-row:hover { border-color: var(--coral); color: var(--text); }
.link-row-primary { border-color: var(--coral); }
.link-label { display: block; font-size: 0.85rem; color: var(--text-3); margin-bottom: 2px; }
.link-path { display: block; font-family: var(--mono); font-size: 0.92rem; overflow-wrap: anywhere; }
.arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid var(--text); border-radius: 50%; font-size: 1rem; }
.link-row:hover .arrow { border-color: var(--coral); color: var(--coral); }
.code { margin: 0; padding: 16px 22px; background: #070C16; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--mono); font-size: 0.95rem; overflow-x: auto; }
.prompt { color: var(--coral); }

/* ---------- Direction ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.tags li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 0.92rem; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; gap: 32px; align-items: flex-start; }
.footer-logo { width: 112px; height: 112px; flex: none; }
.foot-head { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin: 0 0 14px; }
.stay p { margin: 0 0 4px; }
.stay-org { font-weight: 600; }
.stay a { color: var(--text); }
.foot-icons { display: flex; gap: 10px; margin-top: 16px; }
.foot-icons .icon-btn { color: var(--text); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--coral); text-decoration: underline; }
.footer-bottom { padding-top: 28px; color: var(--text-3); }
.footer-bottom p { margin: 0 0 6px; }
.privacy-note { color: var(--text-2); font-weight: 500; margin-bottom: 12px !important; }
.fine { font-size: 0.85rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .footer-brand { flex-direction: column; gap: 24px; }
  .footer-logo { width: 96px; height: 96px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- 404 ---------- */
.page-404 { min-height: 70vh; display: flex; align-items: center; }
.lede-404 { margin: 20px 0 32px; }

@media print {
  body { background: #fff; color: #000; }
  .site-header, .hero-panel, .carousel-controls, .tablist { display: none; }
  .tabpanel[hidden] { display: block; }
}

/* ---------- v0.3.1 publication-candidate polish ---------- */
.hero-status { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: -16px 0 40px; font-size: 0.95rem; color: var(--text-2); }
.hero-status li { position: relative; padding-left: 21px; }
.hero-status li .status-dot { position: absolute; left: 0; top: 0.55em; }
.hero-status strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.hero-status .sep { color: var(--text-3); margin: 0 6px; }
.media-code { position: relative; flex-direction: column; justify-content: center; align-items: flex-start; }
.media-caption { position: absolute; left: 8%; right: 8%; bottom: 18px; font-family: var(--mono); font-size: 0.74rem; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 520px) {
  .brand-name { display: inline; font-size: 1.05rem; }
  .bn-group { display: none; }
}
@media (max-width: 360px) {
  .header-actions .icon-btn:not(.icon-btn-accent) { display: none; }
}
@media (max-width: 640px) { .hero-status { flex-direction: column; margin-top: -8px; } }
