:root {
  --bg: oklch(97.4% 0.012 89);
  --surface: oklch(99.2% 0.006 88);
  --fg: oklch(23% 0.018 78);
  --muted: oklch(48% 0.018 76);
  --border: oklch(85% 0.022 84);
  --accent: oklch(55% 0.092 76);
  --accent-dark: color-mix(in oklch, var(--accent) 82%, black);
  --accent-soft: color-mix(in oklch, var(--accent) 13%, transparent);
  --fg-soft: color-mix(in oklch, var(--fg) 6%, transparent);
  --font-display: 'Iowan Old Style', 'Charter', Georgia, serif;
  --font-body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
  --space: clamp(72px, 10vw, 144px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 18px; line-height: 1.62; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body::selection { background: var(--accent); color: var(--surface); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(56px, 9vw, 126px); line-height: .9; }
h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1; }
h3 { font-size: clamp(25px, 2.4vw, 34px); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.rytm-skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--fg); color: var(--surface); }
.rytm-skip:focus { top: 16px; }
.rytm-shell { width: min(100%, var(--shell)); margin-inline: auto; padding-inline: var(--gutter); }
.rytm-section { padding-block: var(--space); border-top: 1px solid var(--border); }
.rytm-kicker { margin: 0 0 20px; color: var(--muted); font-family: var(--font-mono); font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.rytm-lead { max-width: 64ch; color: var(--muted); font-size: clamp(19px, 2vw, 23px); }
.rytm-note { color: var(--muted); font-size: 15px; }
.rytm-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rytm-rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

.rytm-top { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--bg) 95%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.rytm-top-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding-inline: var(--gutter); }
.rytm-logo, .rytm-footer-logo { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.rytm-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.rytm-nav-right { justify-content: flex-end; }
.rytm-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; text-decoration: none; }
.rytm-nav a:hover, .rytm-nav a[aria-current="page"] { color: var(--fg); }
.rytm-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); }
.rytm-menu-button { display: none; min-height: 46px; padding: 9px 16px; color: var(--fg); background: transparent; border: 1px solid var(--border); border-radius: 999px; }
.rytm-mobile-nav { padding: 16px var(--gutter) 24px; border-top: 1px solid var(--border); }
.rytm-mobile-nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--border); text-decoration: none; }

.rytm-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 650; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .05s ease; }
.rytm-button:active { transform: translateY(1px); }
.rytm-button-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.rytm-button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.rytm-button-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.rytm-button-secondary:hover { border-color: var(--fg); background: var(--fg-soft); }
.rytm-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--fg); font-weight: 650; }
.rytm-link:hover { color: var(--accent-dark); }

.rytm-hero { min-height: calc(100svh - 79px); display: grid; align-items: center; padding-block: clamp(72px, 11vw, 152px); }
.rytm-hero-copy { max-width: 1040px; }
.rytm-hero h1 { max-width: 9.5ch; }
.rytm-hero .rytm-lead { max-width: 48ch; margin-top: 34px; }
.rytm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.rytm-hero-aside { margin: 72px 0 0 auto; max-width: 450px; padding-top: 20px; border-top: 1px solid var(--fg); color: var(--muted); }

.rytm-heading-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: end; gap: 48px; margin-bottom: 64px; }
.rytm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.rytm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.rytm-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rytm-editorial-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.rytm-editorial-reverse { grid-template-columns: 1.2fr .8fr; }
.rytm-offset { padding-top: clamp(48px, 8vw, 112px); }

.rytm-segment { min-height: 255px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 0 0; border-top: 1px solid var(--fg); }
.rytm-segment p { color: var(--muted); }
.rytm-segment .rytm-mono { color: var(--accent-dark); font-size: 13px; }
.rytm-contact-block { padding: 32px 0; border-top: 1px solid var(--border); }
.rytm-contact-block:first-child { border-top-color: var(--fg); }
.rytm-contact-block strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.rytm-contact-block span, .rytm-contact-block a { display: block; margin-top: 8px; color: var(--muted); }

.rytm-image { width: 100%; height: auto; border-radius: var(--radius); }
.rytm-image-square { aspect-ratio: 1; object-fit: contain; background: var(--surface); }
.rytm-image-team { aspect-ratio: 3 / 2; object-fit: contain; }
.rytm-image-movement { aspect-ratio: 720 / 604; object-fit: contain; }
.rytm-caption { margin-top: 12px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }

.rytm-profile { padding-top: 22px; border-top: 1px solid var(--border); }
.rytm-profile h3 { font-size: 28px; }
.rytm-profile p { margin-top: 10px; color: var(--muted); }
.rytm-format { padding: 28px 0; border-top: 1px solid var(--border); }
.rytm-format:first-child { border-top-color: var(--fg); }
.rytm-format h3 { display: flex; justify-content: space-between; gap: 18px; }
.rytm-format p { max-width: 60ch; margin-top: 12px; color: var(--muted); }

.rytm-promo { background: var(--fg); color: var(--surface); }
.rytm-promo .rytm-section { border-color: color-mix(in oklch, var(--surface) 25%, transparent); }
.rytm-promo .rytm-lead, .rytm-promo .rytm-note { color: color-mix(in oklch, var(--surface) 72%, transparent); }
.rytm-promo .rytm-button-secondary { color: var(--surface); border-color: color-mix(in oklch, var(--surface) 45%, transparent); }
.rytm-promo .rytm-button-secondary:hover { background: var(--surface); color: var(--fg); border-color: var(--surface); }
.rytm-price { margin-top: 34px; font-family: var(--font-display); font-size: clamp(48px, 7vw, 88px); line-height: 1; }

.rytm-form { display: grid; gap: 22px; }
.rytm-field { display: grid; gap: 8px; }
.rytm-field label { font-weight: 650; }
.rytm-input, .rytm-select, .rytm-textarea { width: 100%; min-height: 52px; padding: 12px 14px; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.rytm-textarea { min-height: 116px; resize: vertical; }
.rytm-input:hover, .rytm-select:hover, .rytm-textarea:hover { border-color: var(--muted); }
.rytm-input:focus, .rytm-select:focus, .rytm-textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.rytm-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rytm-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rytm-notice { margin-bottom: 24px; padding: 16px 18px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 9px; }
.rytm-notice-error { background: var(--fg-soft); border-color: var(--fg); }

.rytm-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 36px; }
.rytm-product { padding-top: 22px; border-top: 1px solid var(--fg); }
.rytm-product img { margin-bottom: 24px; }
.rytm-product-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 20px 0; padding: 18px 0; border-block: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.rytm-product-price { font-family: var(--font-mono); font-size: 18px; }
.rytm-table-wrap { overflow-x: auto; }
.rytm-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.rytm-table th, .rytm-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); }
.rytm-table th { color: var(--muted); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rytm-steps { counter-reset: rytm-step; }
.rytm-step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--border); }
.rytm-step::before { counter-increment: rytm-step; content: counter(rytm-step, decimal-leading-zero); color: var(--accent-dark); font-family: var(--font-mono); }
.rytm-step p { margin-top: 10px; color: var(--muted); }
.rytm-faq details { border-top: 1px solid var(--border); }
.rytm-faq summary { min-height: 66px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: var(--font-display); font-size: 25px; }
.rytm-faq details p { max-width: 70ch; padding: 0 0 28px; color: var(--muted); }
.rytm-legal { max-width: 780px; }
.rytm-legal h2 { margin-top: 72px; font-size: 36px; }
.rytm-legal h3 { margin-top: 40px; font-size: 27px; }
.rytm-legal p, .rytm-legal li { margin-top: 14px; color: var(--muted); }

.rytm-cta { padding-block: var(--space); border-top: 1px solid var(--border); text-align: center; }
.rytm-cta h2 { max-width: 14ch; margin-inline: auto; }
.rytm-cta .rytm-lead { margin: 24px auto 0; }
.rytm-cta .rytm-actions { justify-content: center; }
.rytm-big-phone { display: inline-block; margin-top: 24px; font-family: var(--font-display); font-size: clamp(42px, 7vw, 86px); line-height: 1; letter-spacing: -.03em; text-decoration: none; }
.rytm-big-phone:hover { color: var(--accent-dark); }

.rytm-footer { padding: 72px 0 28px; color: var(--surface); background: var(--fg); }
.rytm-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.rytm-footer h2 { margin-bottom: 14px; font-family: var(--font-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.rytm-footer p, .rytm-footer span, .rytm-footer a { color: color-mix(in oklch, var(--surface) 68%, transparent); }
.rytm-footer-grid > div > a, .rytm-footer-grid > div > span { display: block; min-height: 36px; }
.rytm-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid color-mix(in oklch, var(--surface) 18%, transparent); font-family: var(--font-mono); font-size: 11px; }
.rytm-cookie { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(420px, calc(100% - 40px)); padding: 18px; display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px color-mix(in oklch, var(--fg) 14%, transparent); }
.rytm-cookie p { color: var(--muted); font-size: 14px; }
.rytm-cookie[hidden] { display: none; }

@media (max-width: 1080px) {
  .rytm-nav { display: none; }
  .rytm-top-inner { grid-template-columns: 1fr auto; }
  .rytm-logo { justify-self: start; }
  .rytm-menu-button { display: inline-flex; align-items: center; justify-self: end; }
  .rytm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .rytm-section { padding-block: 72px; }
  .rytm-hero { min-height: auto; padding-block: 92px; }
  .rytm-hero h1 { font-size: clamp(54px, 17vw, 84px); }
  .rytm-heading-split, .rytm-grid-2, .rytm-grid-3, .rytm-grid-4, .rytm-editorial-grid, .rytm-editorial-reverse, .rytm-products, .rytm-footer-grid { grid-template-columns: 1fr; }
  .rytm-heading-split { align-items: start; margin-bottom: 44px; }
  .rytm-offset { padding-top: 0; }
  .rytm-segment { min-height: 210px; }
  .rytm-product-meta { grid-template-columns: 1fr; }
  .rytm-cookie { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
