/* MR Ranch (mr-ranch.com, staged at provedup.si/mrranch/). One stylesheet for every page; pages are built by tools/mrranch-site/build.js. */
@font-face{font-family:Ranch Serif;src:url('serif.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Ranch Sans;src:url('sans.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Ranch Sans;src:url('sans-semibold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
:root{
 color-scheme:light;--paper:#f4efe2;--surface:#fffcf3;--ink:#1d2a22;--muted:#4f5a50;--line:#cbc4ad;--accent:#1f5b3f;--on-accent:#fff;
 --gold:#9a6b12;--water:#2f6f93;--tint:#e8e2cf;--focus:#1d5f8a;--shadow:0 .8rem 2.4rem #1d2a221a;
 --run:#2e7d4a;--park:#6b7280;--svc:#a8641a;
 --display:'Ranch Serif',Georgia,serif;--body:'Ranch Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
 --round:1rem;--wrap:74rem;--ease:180ms ease;
}
:root[data-theme=dark]{color-scheme:dark;--paper:#111a15;--surface:#18231d;--ink:#eef0e6;--muted:#bcc5b8;--line:#3c4a40;--accent:#8fd1a6;--on-accent:#0d1a12;--gold:#e7bf62;--water:#86c3e6;--tint:#223027;--focus:#8ec5ef;--shadow:0 .8rem 2.4rem #0007;--run:#6fcf8f;--park:#a3abb7;--svc:#f0a95a}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--paper:#111a15;--surface:#18231d;--ink:#eef0e6;--muted:#bcc5b8;--line:#3c4a40;--accent:#8fd1a6;--on-accent:#0d1a12;--gold:#e7bf62;--water:#86c3e6;--tint:#223027;--focus:#8ec5ef;--shadow:0 .8rem 2.4rem #0007;--run:#6fcf8f;--park:#a3abb7;--svc:#f0a95a}}
@media(prefers-reduced-motion:reduce){:root{--ease:0s}}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.6 var(--body);padding-bottom:env(safe-area-inset-bottom)}
img,svg{max-width:100%;display:block}
a{color:var(--accent);text-underline-offset:.18em}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.08;margin:0 0 .5em;letter-spacing:-.01em}
h1{font-size:clamp(2.6rem,6vw,4.8rem)}
h2{font-size:clamp(1.8rem,3.4vw,2.7rem)}
h3{font-size:1.45rem}
p{margin:0 0 1em;max-width:64ch}
.wrap{width:min(100% - 2.5rem,var(--wrap));margin-inline:auto}
.skip{position:absolute;left:-999px;top:.5rem;background:var(--ink);color:var(--paper);padding:.6rem 1rem;border-radius:.5rem;z-index:20}
.skip:focus{left:.75rem}
.release-badge{display:none}

/* Header */
.top{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top)}
.top-in{display:flex;align-items:center;gap:1rem;min-height:4.25rem}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--ink);text-decoration:none;font-family:var(--display);font-size:1.55rem;line-height:1;white-space:nowrap}
.brand svg{width:2.3rem;height:2.3rem;flex:none}
.nav{display:flex;gap:.25rem;margin-left:auto;align-items:center}
.nav a{color:var(--ink);text-decoration:none;padding:.55rem .75rem;border-radius:100vmax;font-weight:600;font-size:.98rem;white-space:nowrap}
.nav a:hover{background:var(--tint)}
.nav a[aria-current=page]{background:var(--tint);color:var(--accent)}
.head-actions{display:flex;gap:.5rem;align-items:center}
.ver{display:inline-flex;align-items:center;min-width:0}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:100vmax;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer}
.icon-btn svg{width:1.2rem;height:1.2rem}
.mobile-nav{display:none;position:relative}
.mobile-nav summary{list-style:none}
.mobile-nav summary::-webkit-details-marker{display:none}
.mobile-nav .sheet{position:absolute;right:0;top:calc(100% + .5rem);background:var(--surface);border:1px solid var(--line);border-radius:var(--round);box-shadow:var(--shadow);padding:.5rem;display:grid;min-width:14rem}
.mobile-nav .sheet a{color:var(--ink);text-decoration:none;padding:.8rem 1rem;border-radius:.6rem;font-weight:600}
.mobile-nav .sheet a[aria-current=page]{color:var(--accent);background:var(--tint)}
.sheet-theme{font:600 1rem/1.2 var(--body);color:var(--ink);background:none;border:0;border-top:1px solid var(--line);margin-top:.25rem;padding:.9rem 1rem;text-align:left;cursor:pointer;min-height:2.75rem}
@media(max-width:1000px){.nav{display:none}.mobile-nav{display:block}.head-actions{margin-left:auto}.call-short{display:none}}

/* Buttons and chips */
.btn{display:inline-flex;align-items:center;gap:.5rem;min-height:2.9rem;padding:.7rem 1.25rem;border-radius:100vmax;text-decoration:none;border:1.5px solid transparent;cursor:pointer;font:600 1rem/1.2 var(--body);transition:transform var(--ease)}
.btn:hover{transform:translateY(-1px)}
.btn svg{width:1.1rem;height:1.1rem;flex:none}
.btn.solid{background:var(--accent);color:var(--on-accent)}
.btn.ghost{border-color:var(--line);color:var(--ink);background:var(--surface)}
.btn.small{min-height:2.75rem;padding:.55rem 1rem;font-size:.95rem}
.row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.chips{display:flex;gap:.5rem;overflow-x:auto;padding:.2rem .1rem .6rem;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.chip{flex:none;font:600 .95rem/1 var(--body);min-height:2.75rem;padding:.6rem 1rem;border-radius:100vmax;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer}
.chip[aria-pressed=true],.chip[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.gallery-btn{margin-left:auto}

/* Hero: the aerial drawing, its pivot arms turning slowly */
.hero{position:relative;margin-top:1.25rem;border-radius:1.5rem;overflow:hidden;min-height:min(72vh,36rem);display:grid;align-items:end;background:#5c7a4f}
.hero>.scene{position:absolute;inset:0;width:100%;height:100%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0000 20%,#0a120dcc 100%),linear-gradient(90deg,#0a120d80 0%,#0000 65%)}
.scene .arm{animation:sweep linear infinite}
@keyframes sweep{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.scene .arm{animation:none}}
.hero-copy{position:relative;z-index:1;padding:clamp(1.5rem,4vw,3.5rem);color:#fff;max-width:50rem}
.hero-copy h1{color:#fff;text-shadow:0 2px 18px #0008}
.hero-copy .lead{font-size:clamp(1.1rem,1.6vw,1.3rem);color:#fbf6e6;text-shadow:0 1px 10px #0009}
.hero-copy .btn.solid{background:#e2b553;color:#1d2a22}
.hero-copy .btn.ghost{background:#ffffffe6;color:#1d2a22;border-color:#fff}
.eyebrow{font:600 .9rem/1.3 var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin:0 0 .75rem}
.hero .eyebrow{color:#ffe6a8;text-shadow:0 1px 8px #000a}
.page-head{padding:clamp(2rem,5vw,3.5rem) 0 1rem}
.page-head .lead{font-size:1.2rem;color:var(--muted)}

/* Sections */
.section{padding:clamp(1.75rem,4.5vw,3.25rem) 0}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:1rem;margin:1.5rem 0 0;padding:0;list-style:none}
.facts li{background:var(--surface);border:1px solid var(--line);border-radius:var(--round);padding:1rem 1.15rem}
.facts b{display:block;font-family:var(--display);font-weight:400;font-size:1.5rem;color:var(--accent);line-height:1.15}
.doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(17rem,1fr));gap:1.25rem}
.door{display:grid;grid-template-rows:auto 1fr;background:var(--surface);border:1px solid var(--line);border-radius:var(--round);overflow:hidden;color:var(--ink);text-decoration:none;box-shadow:var(--shadow);transition:transform var(--ease)}
.door:hover{transform:translateY(-3px)}
.door .ph{aspect-ratio:16/10}
.door>div:not(.ph){padding:1.1rem 1.25rem 1.35rem}
.door h3{color:var(--accent);margin-bottom:.35rem}
.door p{margin:0;color:var(--muted)}
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.5rem,4vw,3rem);align-items:center}
.split .ph{border-radius:1.25rem;overflow:hidden}
.split .ph.big{aspect-ratio:4/3}
@media(max-width:820px){.split{grid-template-columns:minmax(0,1fr)}}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--round);padding:1rem 1rem 1.25rem;overflow:hidden}
.card .art{aspect-ratio:16/9;border-radius:.7rem;margin-bottom:.9rem}
.card h3{font-size:1.3rem;margin-bottom:.4rem;color:var(--accent)}
.card p{margin:0;color:var(--muted)}
.ticks{list-style:none;padding:0;margin:0 0 1rem}
.ticks li{padding-left:1.6rem;position:relative;margin:.55rem 0}
.ticks li::before{content:"";position:absolute;left:0;top:.5em;width:.8rem;height:.45rem;border-left:2.5px solid var(--accent);border-bottom:2.5px solid var(--accent);transform:rotate(-45deg)}
details.more{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:.25rem 0}
details.more summary{cursor:pointer;font:400 1.5rem/1.2 var(--display);min-height:2.9rem;display:flex;align-items:center}
details.more[open] summary{margin-bottom:.5rem}
.callout{display:flex;flex-wrap:wrap;gap:1rem 2rem;align-items:center;justify-content:space-between;background:var(--accent);color:var(--on-accent);border-radius:1.25rem;padding:clamp(1.25rem,3vw,2rem)}
.callout h2{margin:0;font-size:clamp(1.5rem,2.6vw,2.1rem)}
.callout p{margin:.35rem 0 0}
.callout p a{color:inherit;font-weight:600}
.callout .btn.solid{background:var(--paper);color:var(--ink)}
.callout .btn.ghost{background:transparent;color:inherit;border-color:currentColor}

/* Drawn pictures (no photos of the ranch yet): small scenes as CSS backgrounds */
.art{background-color:#7aa35f;background-size:cover;background-position:center;background-repeat:no-repeat}
.art-pivot{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Crect width='320' height='200' fill='%23cdb98c'/%3E%3Ccircle cx='160' cy='100' r='92' fill='%235f9e6e'/%3E%3Cpath d='M160 100L252 100A92 92 0 0 0 160 8Z' fill='%234f8fb5' opacity='.55'/%3E%3Ccircle cx='160' cy='100' r='60' fill='none' stroke='%23000' stroke-opacity='.08' stroke-width='3'/%3E%3Ccircle cx='160' cy='100' r='30' fill='none' stroke='%23000' stroke-opacity='.08' stroke-width='3'/%3E%3Cpath d='M160 100H252' stroke='%23f4f4ef' stroke-width='5' stroke-linecap='round'/%3E%3Ccircle cx='183' cy='100' r='4' fill='%23fff' stroke='%23555' stroke-width='1.5'/%3E%3Ccircle cx='206' cy='100' r='4' fill='%23fff' stroke='%23555' stroke-width='1.5'/%3E%3Ccircle cx='229' cy='100' r='4' fill='%23fff' stroke='%23555' stroke-width='1.5'/%3E%3Ccircle cx='160' cy='100' r='7' fill='%23fff' stroke='%23444' stroke-width='2'/%3E%3C/svg%3E")}
.art-cattle{background-color:#9cc3dc;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Crect width='320' height='200' fill='%23a9cfe4'/%3E%3Ccircle cx='255' cy='45' r='18' fill='%23f6d98b'/%3E%3Cpath d='M0 120c60-18 120-22 180-10s100 6 140-6v96H0z' fill='%2389ad62'/%3E%3Cpath d='M0 150c70-10 150-12 220-2s70 2 100-2v54H0z' fill='%236d9450'/%3E%3Cg fill='%232a2622'%3E%3Cpath d='M70 128h46c6 0 10 4 10 9v9h-8v14h-6v-14h-30v14h-6v-14h-6zM126 132l12-4 4 6-6 6h-10z'/%3E%3Cpath d='M180 140h38c5 0 8 3 8 8v7h-6v12h-5v-12h-25v12h-5v-12h-5zM226 143l10-3 3 5-5 5h-8z'/%3E%3C/g%3E%3Cpath d='M0 100h320' stroke='%23705a3a' stroke-width='2'/%3E%3Cg stroke='%23705a3a' stroke-width='3'%3E%3Cpath d='M20 92v22M80 92v22M140 92v22M200 92v22M260 92v22'/%3E%3C/g%3E%3C/svg%3E")}
.art-hay{background-color:#d9b866;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Crect width='320' height='200' fill='%23b9d6e6'/%3E%3Cpath d='M0 95h320v105H0z' fill='%23d6bf72'/%3E%3Cg stroke='%23b99a49' stroke-width='3'%3E%3Cpath d='M0 120h320M0 145h320M0 170h320'/%3E%3C/g%3E%3Cg fill='%23c99b3c' stroke='%23946e22' stroke-width='3'%3E%3Ccircle cx='80' cy='140' r='24'/%3E%3Ccircle cx='170' cy='128' r='20'/%3E%3Ccircle cx='250' cy='150' r='27'/%3E%3C/g%3E%3Cg fill='none' stroke='%23946e22' stroke-width='2'%3E%3Ccircle cx='80' cy='140' r='13'/%3E%3Ccircle cx='170' cy='128' r='10'/%3E%3Ccircle cx='250' cy='150' r='15'/%3E%3C/g%3E%3C/svg%3E")}
.art-gate{background-color:#e7c27a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 200'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f0b979'/%3E%3Cstop offset='1' stop-color='%23f7e2b0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='320' height='200' fill='url(%23s)'/%3E%3Ccircle cx='160' cy='132' r='34' fill='%23fff1c9'/%3E%3Cpath d='M0 140c70-12 160-14 320-4v64H0z' fill='%235e7d45'/%3E%3Cg fill='%233a2b1d'%3E%3Crect x='70' y='56' width='10' height='100'/%3E%3Crect x='240' y='56' width='10' height='100'/%3E%3Crect x='62' y='50' width='196' height='12' rx='2'/%3E%3C/g%3E%3Cpath d='M138 68v18M182 68v18' stroke='%233a2b1d' stroke-width='3'/%3E%3Crect x='124' y='84' width='72' height='26' rx='4' fill='%233a2b1d'/%3E%3Ctext x='160' y='103' font-family='Georgia,serif' font-size='18' fill='%23f4ecd8' text-anchor='middle'%3EM R%3C/text%3E%3C/svg%3E")}

/* Pivot board */
.board-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem 1rem}
.board-head h2{margin:0}
.board-sum{margin:0;color:var(--muted);font-weight:600}
.board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(15.5rem,1fr);gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;padding:.25rem .1rem 1rem;-webkit-overflow-scrolling:touch}
.board.is-gallery{grid-auto-flow:row;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));overflow:visible}
.pivot{scroll-snap-align:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--round);padding:1rem;display:grid;gap:.6rem;box-shadow:var(--shadow)}
.pivot svg{width:100%;max-width:11rem;margin:0 auto;aspect-ratio:1}
.pivot h3{margin:0;font-size:1.35rem;display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}
.pivot dl{display:grid;grid-template-columns:auto 1fr;gap:.15rem .75rem;margin:0;font-size:.98rem}
.pivot dt{color:var(--muted)}
.pivot dd{margin:0;font-weight:600}
.pivot .note{margin:0;color:var(--muted);font-size:.95rem}
.status{font:600 .85rem/1 var(--body);padding:.35rem .6rem;border-radius:100vmax;border:1.5px solid currentColor;white-space:nowrap}
.status.running{color:var(--run)}.status.parked,.status.off{color:var(--park)}.status.service{color:var(--svc)}
.is-example .pivot{border-style:dashed}
.is-example .pivot h3::after{content:"Example";font:600 .75rem/1 var(--body);color:var(--muted);letter-spacing:.06em;text-transform:uppercase;margin-left:auto}
.pivot .live{animation:pulse 2.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.pivot .live{animation:none}}
.diagram{width:100%;height:auto}

/* Develop-mode notes: shown to the team, hidden from customers (Commercial mode), with the example pivot board */
.dev-note{width:min(100% - 2.5rem,var(--wrap));margin:0 auto 1rem;background:repeating-linear-gradient(-45deg,var(--tint) 0 12px,var(--surface) 12px 24px);border:1.5px dashed var(--gold);border-radius:var(--round);padding:.8rem 1.1rem}
.board-wrap .dev-note{width:auto;margin:1rem 0}
.dev-note p{margin:0;max-width:none}
html[data-pu-mode=commercial] .dev-note{display:none!important}
html[data-pu-mode=commercial] .board-wrap:has(.is-example){display:none}

/* Seasons (tabs) */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--round);padding:1.1rem 1.25rem;min-height:6rem}
.panel p{margin:0}

/* Contact */
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(1.5rem,4vw,3rem);align-items:start}
@media(max-width:860px){.contact-grid{grid-template-columns:minmax(0,1fr)}}
.contact-grid>*{min-width:0}
.ways{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}
.ways li{background:var(--surface);border:1px solid var(--line);border-radius:var(--round);padding:1rem 1.15rem}
.ways small{display:block;color:var(--muted);font-size:.95rem}
.ways a{font-weight:600;font-size:1.15rem;overflow-wrap:anywhere}
form.ask{background:var(--surface);border:1px solid var(--line);border-radius:1.25rem;padding:clamp(1.1rem,3vw,1.75rem);box-shadow:var(--shadow)}
form.ask fieldset{border:0;margin:0;padding:0;display:grid;gap:1rem}
form.ask legend{font-family:var(--display);font-size:1.6rem;margin-bottom:.5rem;padding:0}
label{display:grid;gap:.35rem;font-weight:600}
input,select,textarea{font:400 1rem/1.4 var(--body);color:var(--ink);background:var(--paper);border:1.5px solid var(--line);border-radius:.65rem;padding:.7rem .8rem;min-height:2.9rem;width:100%}
textarea{min-height:7rem;resize:vertical}
.two{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media(max-width:560px){.two{grid-template-columns:minmax(0,1fr)}}
[role=status]{min-height:1.4em;color:var(--accent);font-weight:600}

/* Footer */
.foot{margin-top:clamp(2.5rem,6vw,4rem);border-top:1px solid var(--line);background:var(--surface);padding:2rem 0 calc(2rem + env(safe-area-inset-bottom))}
.foot-in{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:1.5rem}
@media(max-width:760px){.foot-in{grid-template-columns:minmax(0,1fr)}}
.foot h2{font-size:1.35rem;margin-bottom:.6rem}
.foot ul{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}
.foot a{color:var(--ink)}
.foot .legal{grid-column:1/-1;color:var(--muted);font-size:.95rem;border-top:1px solid var(--line);padding-top:1rem}
.foot .legal p{max-width:none;margin:0}

/* Phones: the call button shrinks to its icon, the theme switch moves into the menu, the home page stays short. */
@media(max-width:600px){
 .call .call-num,.call .call-short{display:none}.call{width:2.75rem;padding:0;justify-content:center}.top-in{gap:.5rem}
 .facts{grid-template-columns:1fr 1fr;gap:.6rem}.facts li{padding:.8rem;font-size:.98rem;line-height:1.4}.facts b{font-size:1.15rem;margin-bottom:.2rem}
 .door{grid-template-rows:none;grid-template-columns:7.5rem 1fr}.door .ph{aspect-ratio:auto;height:100%}.door>div:not(.ph){padding:.9rem 1rem}.door h3{font-size:1.25rem}.door p{font-size:1rem;line-height:1.45}
 .hero{min-height:30rem}
 .board{grid-auto-columns:82%}
}
@media(max-width:480px){.head-actions>[data-theme-toggle]{display:none}}
