/* Syntony craft layer, November 2026. Loaded after system.css on every page.
   The idea: the reading. Syntony measures systems, so the signature graphic is the reference line,
   a thin rule with an instrument scale, and the main imagery is real output from Syntony's own tools.
   This layer calms the typography (sentence-case buttons and links, lighter display weights, larger body
   copy), replaces decorative halftone screens with clean photography, adds the reference line, and adds
   a paper surface for long reading. Notes: _design/direction.md */

:root {
  --sy-paper: #f4f3ee;
  --sy-paper-raised: #ffffff;
  --sy-ink-text: #14161a;
  --sy-ink-soft: #464a52;
  --sy-ink-line: #dcdad2;
  --sy-body-on-ink: #c9ccd2;
  --sy-ok: #5ccb97;
  --sy-hold: #e6ab52;
  --sy-scale: repeating-linear-gradient(90deg, rgba(252, 252, 254, .22) 0 1px, transparent 1px 8px);
  --sy-scale-major: repeating-linear-gradient(90deg, rgba(91, 125, 255, .9) 0 1px, transparent 1px 64px);
  --sy-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Type ---------- */
:where(body) { margin: 0; font-size: 16px; line-height: 1.6; }
:where(h1, h2, h3, h4) { font-weight: 500; letter-spacing: -.03em; }
:is(#hero-title, .sy-h2, .sy-page-hero h1, .sy-product-header h1, .hs-hero h1, .detail-hero h1, .sy-cta-end h2, .detail-subhead h2, .intro-split h2) {
  font-weight: 500 !important; letter-spacing: -.038em !important; }
.sy-h2 { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.03; text-wrap: balance; }
.sy-h3, .sy-card h3 { font-weight: 500; letter-spacing: -.022em; }
.sy-card h3 { font-size: clamp(18px, 1.5vw, 21px); }
.sy-page-hero h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.0; text-wrap: balance; }
.sy-lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--sy-body-on-ink); }
.sy-section-head > p { font-size: 17px; line-height: 1.6; color: #bdc0c7; max-width: 52ch; }
.sy-card p { font-size: 15.5px; line-height: 1.6; color: #b4b7bf; }
p { text-wrap: pretty; }

/* One label per block, mono, with a short reference tick instead of a dot. */
.sy-eyebrow, .eyebrow, .section-kicker .mono { font-size: 12px !important; letter-spacing: .1em !important; color: #9fa2aa; }
.sy-eyebrow::before { width: 14px !important; height: 2px !important; margin: 0 10px 3px 0 !important; background: var(--sy-blue) !important; }

/* Buttons and links read as sentences again. */
.sy-btn, .sy-btn-ghost, .solid-button, .black-button, .sy-nav-actions a {
  font-family: var(--sy-body) !important; font-size: 14.5px !important; font-weight: 600 !important;
  letter-spacing: -.005em !important; text-transform: none !important; min-height: 46px; padding: 0 20px; }
.sy-btn-small { font-size: 13.5px !important; min-height: 40px; padding: 0 16px; }
.sy-nav-actions a { font-size: 13.5px !important; min-height: 40px; padding: 0 16px; }
.sy-btn { transition: background .2s var(--sy-ease), transform .2s var(--sy-ease); }
.sy-btn:active { transform: translateY(1px); }
.sy-link { font-family: var(--sy-body) !important; font-size: 15px !important; font-weight: 500; letter-spacing: 0 !important; text-transform: none !important;
  color: #7f98ff; text-decoration: underline; text-decoration-color: rgba(127, 152, 255, .35); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.sy-link:hover { color: #a9baff; text-decoration-color: currentColor; }
.sy-section-head .sy-link { font-size: 15px !important; }

/* ---------- The reference line ---------- */
.sy-section { position: relative; border-top: 0 !important; }
.sy-section + .sy-section::before, .sy-ref::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; pointer-events: none;
  background: linear-gradient(var(--sy-line), var(--sy-line)) top / 100% 1px no-repeat,
              var(--sy-scale-major) top 1px left 0 / 100% 7px no-repeat,
              var(--sy-scale) top 1px left 0 / 100% 4px no-repeat;
  opacity: .9; }

/* ---------- Photography ---------- */
/* Clean photographs: no decorative screen, a gradient only where the type sits. */
.sy-photo::before { filter: saturate(.95) brightness(.9) !important; }
.sy-photo::after { background-image: linear-gradient(180deg, rgba(10,10,11,.42) 0%, rgba(10,10,11,.5) 50%, rgba(10,10,11,.97) 100%),
  linear-gradient(90deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.2) 50%, rgba(10,10,11,.45) 100%) !important; background-size: auto !important; }
/* Product captures used as a page header: the real interface sits sharp on the right, the type on the left. */
.sy-photo-ui { grid-template-columns: minmax(0, 1fr) !important; min-height: clamp(520px, 70vh, 720px); }
.sy-photo-ui > * { max-width: min(540px, 42%); }
.sy-photo-ui::before { background-size: min(1000px, 52vw) auto !important; background-position: right calc((100vw - min(1280px, 92vw)) / 2) center !important; background-color: #0a0a0b !important; filter: none !important; }
.sy-photo-ui::after { background-image: linear-gradient(90deg, #0a0a0b 0%, #0a0a0b 34%, rgba(10,10,11,.7) 46%, rgba(10,10,11,.08) 62%, rgba(10,10,11,0) 100%), linear-gradient(180deg, rgba(10,10,11,.2) 0%, rgba(10,10,11,0) 18%, rgba(10,10,11,0) 80%, #0a0a0b 100%) !important; }
.sy-photo :is(p, .sy-lead, .lead) { color: rgba(255, 255, 255, .88) !important; }
@media (max-width: 860px) {
  .sy-photo::after { background-image: linear-gradient(0deg, var(--sy-black) 0%, rgba(10,10,11,.85) 45%, rgba(10,10,11,.15) 100%) !important; }
  .sy-photo-ui { min-height: 0; padding-top: clamp(250px, 66vw, 420px) !important; }
  .sy-photo-ui > * { max-width: none; }
  .sy-photo-ui::before { background-size: 118% auto !important; background-position: left top !important; }
  .sy-photo-ui::after { background-image: linear-gradient(180deg, rgba(10,10,11,0) 0, rgba(10,10,11,.1) clamp(140px, 40vw, 260px), #0a0a0b clamp(250px, 66vw, 420px)) !important; }
}

/* ---------- Paper surface for long reading ---------- */
.sy-paper { position: relative; isolation: isolate; color: var(--sy-ink-text); }
.sy-paper::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--sy-paper); }
.sy-paper.sy-section::before { display: none; }
.sy-paper :is(h2, h3, h4, .sy-h2, .sy-h3) { color: var(--sy-ink-text) !important; }
.sy-paper :is(p, li, .sy-section-head > p) { color: var(--sy-ink-soft); }
.sy-paper .sy-eyebrow { color: #5d6069 !important; }
.sy-paper .sy-link { color: #1d3fd6; text-decoration-color: rgba(29, 63, 214, .35); }
.sy-paper .sy-link:hover { color: #0f2aa8; }
.sy-paper .sy-btn { background: var(--sy-ink-text); color: #fff; border-color: var(--sy-ink-text); }
.sy-paper .sy-btn-ghost { color: var(--sy-ink-text); border-color: #b9b7ae; }
.sy-paper .sy-btn-ghost:hover { border-color: var(--sy-ink-text); }
.sy-paper :focus-visible { outline-color: #1d3fd6 !important; }
.sy-paper .sy-grid { background: var(--sy-ink-line); border-color: var(--sy-ink-line) !important; }
.sy-paper .sy-grid > .sy-card, .sy-paper .sy-grid > article, .sy-paper .sy-card { background: var(--sy-paper-raised); color: var(--sy-ink-text); border-color: var(--sy-ink-line) !important; }
.sy-paper .sy-card:hover { background: #fbfbf8; }
.sy-paper .sy-card p { color: var(--sy-ink-soft); }
.sy-paper ::selection { background: #264ded; color: #fff; }
/* the rails that frame the page stay visible but quiet on paper */
body:has(.sy-paper) { --sy-rail: rgba(140, 140, 150, .12); }

/* ---------- Media frames ---------- */
.sy-frame { position: relative; margin: 0; background: #060607; border: 1px solid var(--sy-line-strong); overflow: hidden; }
.sy-frame :is(img, video) { display: block; width: 100%; height: auto; }
.sy-frame-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 12px; font-size: 14px; line-height: 1.55; color: #9fa2aa; }
.sy-frame-cap b { color: var(--sy-white); font-weight: 600; }
.sy-paper .sy-frame-cap { color: #5d6069; }
.sy-paper .sy-frame-cap b { color: var(--sy-ink-text); }
.sy-play {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.28); background: rgba(10,10,11,.72); color: #fff;
  font: 500 12.5px var(--sy-body); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sy-play:hover { border-color: #fff; }
.sy-play svg { width: 10px; height: 10px; fill: currentColor; }

/* ---------- Index rows (numbered lists of work) ---------- */
.sy-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sy-line); counter-reset: ix; }
.sy-index > li { counter-increment: ix; display: grid; grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1.25fr) auto; gap: 8px 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--sy-line); }
.sy-index > li::before { content: "/0" counter(ix); font: 500 13px var(--sy-mono); color: var(--sy-blue-text); padding-top: 6px; }
.sy-index h3 { margin: 0; font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.sy-index p { margin: 0; font-size: 16px; line-height: 1.6; }
.sy-index .sy-index-meta { display: block; margin-top: 8px; font: 500 12px var(--sy-mono); letter-spacing: .04em; color: #8a8d95; }
.sy-index .sy-index-go { display: grid; gap: 6px; justify-items: end; padding-top: 4px; white-space: nowrap; }
.sy-paper .sy-index { border-color: var(--sy-ink-line); }
.sy-paper .sy-index > li { border-color: var(--sy-ink-line); }
.sy-paper .sy-index > li::before { color: #1d3fd6; }
.sy-paper .sy-index .sy-index-meta { color: #6b6e76; }
@media (max-width: 900px) {
  .sy-index > li { grid-template-columns: 44px minmax(0, 1fr); }
  .sy-index > li > :nth-child(n+2) { grid-column: 2; }
  .sy-index .sy-index-go { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .sy-btn, .sy-btn::after { transition: none !important; }
}
