/* FieldKitOS "Field" palette (brand kit, Nov 2026). Flat surfaces, one gold accent, square edges with one
   cut corner on primary panels, mono labels. Scoped to html[data-theme="field"]; no other palette changes.
   Fonts are self-hosted (Barlow and IBM Plex Mono, SIL Open Font License). */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/barlow-400.woff2") format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/barlow-500.woff2") format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/barlow-600.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/plexmono-400.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/plexmono-500.woff2") format("woff2")}
@font-face{font-family:"FieldKit Wordmark";font-style:normal;font-weight:600;font-display:swap;src:url("/assets/fonts/archivo-600-wordmark.woff2") format("woff2")}
html[data-theme="field"]{color-scheme:dark;--fk-field:#0B100D;--fk-panel:#111813;--fk-rule:#24302A;--fk-ivory:#F3EFE4;--fk-muted:#A7B3A9;--fk-gold:#E8B54A;--fk-gold-deep:#B07D12;--fk-signal:#8FD4A0;
 --bg:#0B100D;--bg2:#0B100D;--panel:#111813;--panel2:#111813;--text:#F3EFE4;--muted:#A7B3A9;--subtle:#7F8D83;--line:#24302A;--accent:#E8B54A;--accent2:#E8B54A;--accent-text:#0B100D;
 --header:#0B100D;--glass:#111813;--glow:transparent;--shadow:none;--radius:0;--font-mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;--fk-cut:polygon(8px 0,100% 0,100% 100%,0 100%,0 8px)}
html[data-theme="field"] body{background:var(--fk-field);font-family:"Barlow","Inter",system-ui,sans-serif;font-size:17px}
html[data-theme="field"] body::before{opacity:.55;background-size:64px 64px;animation:fk-grid-drift 90s linear infinite}
@keyframes fk-grid-drift{to{background-position:64px 64px}}
@keyframes fk-gold-flow{from{background-position:0 0}to{background-position:100% 0}}
html[data-theme="field"] :is(h1,h2,h3,.hero h1,.page-hero h1,.section-head h2,.shop-card h2){font-family:"Barlow","Inter",system-ui,sans-serif;font-weight:600;letter-spacing:-.01em}
html[data-theme="field"] :is(.hero h1 span,.gradient-text){background:none;-webkit-text-fill-color:var(--fk-gold);color:var(--fk-gold)}
html[data-theme="field"] :is(.pill,.eyebrow,.detail-kicker,.theme-label-short,.status-flag,.panel-title){font-family:var(--font-mono);font-weight:500;letter-spacing:.12em}
html[data-theme="field"] .site-header{background:var(--fk-field);-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid var(--fk-rule)}
html[data-theme="field"] .wordmark{font-family:"FieldKit Wordmark","Barlow","Inter",system-ui,sans-serif;font-weight:600;letter-spacing:0;color:var(--fk-ivory);-webkit-text-fill-color:var(--fk-ivory)}
html[data-theme="field"] .wordmark em{font-weight:600;letter-spacing:0;color:var(--fk-gold);-webkit-text-fill-color:var(--fk-gold)}
html[data-theme="field"] .brand{gap:4px}
html[data-theme="field"] .site-nav a{font-family:"Barlow","Inter",system-ui,sans-serif;font-weight:500;font-size:14px}
html[data-theme="field"] .button{border-radius:0;background:transparent;color:var(--fk-ivory);border:1px solid var(--fk-rule);box-shadow:none;font-weight:600;letter-spacing:.02em}
html[data-theme="field"] .button::before,html[data-theme="field"] .glass::after{display:none}
html[data-theme="field"] .button:hover{transform:none;border-color:var(--fk-gold);box-shadow:none}
html[data-theme="field"] .button-primary{color:var(--fk-field);border:1px solid var(--fk-gold);background:linear-gradient(100deg,#E8B54A 0,#E8B54A 38%,#F6D88F 50%,#E8B54A 62%,#E8B54A 100%) 0 0/250% 100%;animation:fk-gold-flow 9s ease-in-out infinite alternate}
html[data-theme="field"] .button-primary:hover{border-color:var(--fk-ivory);box-shadow:none}
html[data-theme="field"] .glass{border-radius:0;border:1px solid var(--fk-rule);background:var(--fk-panel);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="field"] .glass:hover{transform:none;border-color:color-mix(in srgb,var(--fk-gold) 55%,var(--fk-rule));box-shadow:none}
html[data-theme="field"] :is(.shop-card,.product-tour,.hero-console-panel){clip-path:var(--fk-cut)}
html[data-theme="field"] :is(.pill,.theme-option,.module-icon,.disclosure){border-radius:0}
html[data-theme="field"] .pill{background:transparent;border-color:var(--fk-rule)}
html[data-theme="field"] .dot{border-radius:0;box-shadow:none}
html[data-theme="field"] .module-icon{background:transparent;border-color:var(--fk-rule);color:var(--fk-gold)}
html[data-theme="field"] .disclosure{background:var(--fk-panel);border-left:2px solid var(--fk-gold)}
html[data-theme="field"] :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--fk-gold);outline-offset:3px}
html[data-theme="field"] .site-footer{border-top:1px solid var(--fk-rule)}
html .theme-swatch[data-color="field"]{background:#E8B54A;border-radius:0}
/* Logo (gold summit, owner 26 Nov 2026): the header and footer show the drawn FieldKit lockup as one image, in its
   dark colourway because both bars are obsidian. It keeps its 220:40 shape and never moves. The "OS" lockup on the
   homepage's dark band is still live text: FieldKit in ivory and OS in brass, the new logo's colours. */
html[data-theme="field"] .brand-logo{display:block;flex:none}
/* Header logo motion (owner, 27 Nov 2026): the header is two images side by side with no gap, the peaks icon in its own 36 px box and the FIELDKIT
   letters (the 12-unit gap of the 220:40 lockup is inside the letters file). The peaks rise once inside the icon file; then one gold glint sweeps across it, once, on load
   only. Hover and keyboard focus play the hardware morph only (owner, 27 Nov 2026: the glint must not run while the logo changes), and the glint is hidden whenever the
   morph plays. It is hidden with visibility only: switching its animation off and back on would restart it, so the glint swept again after every morph (owner, 28 Nov
   2026: "the flash of the mountain is still happening"). The glint is masked to the static logo shape and ends off the logo. None of it runs for reduced motion or print. */
html[data-theme="field"] .site-header .brand{position:relative;gap:0}
html[data-theme="field"] .site-header .brand::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 40%,rgba(255,240,190,.95) 50%,transparent 60%) 100% 0/250% 100% no-repeat;-webkit-mask:url(/assets/fieldkit-logo-dark.svg?v=1) center/100% 100% no-repeat;mask:url(/assets/fieldkit-logo-dark.svg?v=1) center/100% 100% no-repeat;animation:fk-glint .5s ease-in-out .9s 1 backwards}
html[data-theme="field"] .site-header .brand:has(.brand-mark.fk-logo-play)::after{visibility:hidden}
@keyframes fk-glint{from{background-position:100% 0}to{background-position:0 0}}
@media(prefers-reduced-motion:reduce){html[data-theme="field"] .site-header .brand::after{animation:none;transition:none;display:none}}
@media print{html[data-theme="field"] .site-header .brand::after{animation:none;transition:none;display:none}}
html[data-theme="field"] .fk-sc-mark{margin:0 0 clamp(10px,1.4vw,16px)}
html[data-theme="field"] .fk-sc-mark img{display:block;width:min(100%,360px);height:auto}
html[data-theme="field"] :is(header,main,footer) *:not(svg,svg *,.fk-theme-dot){border-radius:0}
/* Homepage hero: one terrain drawing behind the product capture. Drawn by a formula, decorative only. */
html[data-theme="field"] .hero{position:relative;isolation:isolate}
html[data-theme="field"] .hero::before{content:"";position:absolute;z-index:-1;inset:0 0 8% 30%;background:url("/assets/fieldkitos-terrain.svg") center/100% 100% no-repeat;opacity:.62;-webkit-mask-image:linear-gradient(90deg,transparent 15%,#000 58%);mask-image:linear-gradient(90deg,transparent 15%,#000 58%);pointer-events:none}
@media(max-width:900px){html[data-theme="field"] .hero::before{inset:0 0 auto;height:280px;opacity:.26}}
@media(prefers-reduced-motion:reduce){html[data-theme="field"] body::before,html[data-theme="field"] .button-primary{animation:none}}
@media(forced-colors:active){html[data-theme="field"] :is(.shop-card,.product-tour,.hero-console-panel){clip-path:none}}
/* The bar above the hero capture was white in every palette, with 10px sage and brass text on it (2.1:1 and 1.8:1). */
html[data-theme="field"] .hero-console-demo .showcase-browser{background:var(--fk-panel);border-bottom:1px solid var(--fk-rule)}
/* Paper (Field Instrument v3, Phase 2b): every page's <main> reads as an ivory document under the dark header and footer.
   Inside the paper the tokens are remapped: --fk-ivory is the ink and --fk-gold a brass ink that passes 4.5:1 on ivory.
   The dark band class is a full-width dark strip for the software and its real screenshots; it sets the tokens back. */
html[data-theme="field"] main.fi-paper{--bg:#F3EFE4;--bg2:#F3EFE4;--panel:#FAF7EF;--panel2:#FAF7EF;--text:#0B100D;--muted:#4B564E;--subtle:#5E6A61;--line:#CFC8B5;--accent:#8A5E0A;--accent2:#8A5E0A;--accent-text:#F3EFE4;--glass:#FAF7EF;
 --fk-field:#F3EFE4;--fk-panel:#FAF7EF;--fk-rule:#CFC8B5;--fk-ivory:#0B100D;--fk-muted:#4B564E;--fk-gold:#8A5E0A;color-scheme:light;background:#F3EFE4;color:#0B100D;padding-bottom:72px;overflow-x:clip}
html[data-theme="field"] .fi-paper .fi-dark{--bg:#0B100D;--bg2:#0B100D;--panel:#111813;--panel2:#111813;--text:#F3EFE4;--muted:#A7B3A9;--subtle:#8C9A90;--line:#24302A;--accent:#E8B54A;--accent2:#E8B54A;--accent-text:#0B100D;--glass:#111813;
 --fk-field:#0B100D;--fk-panel:#111813;--fk-rule:#24302A;--fk-ivory:#F3EFE4;--fk-muted:#A7B3A9;--fk-gold:#E8B54A;color-scheme:dark;background:#0B100D;color:#F3EFE4;box-shadow:0 0 0 100vmax #0B100D;clip-path:inset(0 -100vmax)}
html[data-theme="field"] .fi-paper.not-found{box-shadow:0 0 0 100vmax #F3EFE4;clip-path:inset(0 -100vmax)}
html[data-theme="field"] .fi-paper :is(.hero,.page-hero) h1{font-size:clamp(38px,6.2vw,76px);line-height:1.02;letter-spacing:-.03em;max-width:17ch}
html[data-theme="field"] .fi-paper .section-head{border-top:2px solid var(--text);padding-top:18px}
html[data-theme="field"] .fi-paper .section-head h2{max-width:22ch;letter-spacing:-.02em}
html[data-theme="field"] .fi-paper .button-primary:not(.fi-dark *){background:#0B100D;color:#F3EFE4;border-color:#0B100D;animation:none}
html[data-theme="field"] .fi-paper .button-primary:not(.fi-dark *):hover{border-color:#8A5E0A}
html[data-theme="field"] .fi-paper .glass:hover{border-color:var(--text)}
/* Homepage on paper: the headline stands alone on ivory with the terrain beside it; the console captures follow as a dark band. */
html:not([data-theme="field"]) .fk-creed{display:none}
html[data-theme="field"] .fk-creed{margin:26px 0 0;padding-top:14px;border-top:1px solid var(--accent);max-width:60ch;color:var(--muted);font-size:15px;line-height:1.5}
html[data-theme="field"] .fk-creed strong{display:block;color:var(--text);font:500 13px/1.6 var(--font-mono);letter-spacing:.12em;text-transform:uppercase}
html[data-theme="field"] .fi-paper .hero-product-launch{grid-template-columns:minmax(0,1fr);gap:0;min-height:0;padding-bottom:0}
html[data-theme="field"] .fi-paper .hero-product-launch .hero-copy{max-width:800px;padding-bottom:clamp(36px,5vw,72px)}
html[data-theme="field"] .fi-paper .hero-product-launch h1{max-width:none}
html[data-theme="field"] .fi-paper .hero-showcase{max-width:none;width:auto;margin:0;padding:clamp(28px,4vw,60px) 0}
html[data-theme="field"] .fi-paper .hero-showcase>*{max-width:1080px;margin-inline:auto}
html[data-theme="field"] .fi-paper .hero::before{inset:0 0 auto 50%;height:520px;opacity:.7}
html[data-theme="field"] .fi-paper .section.fi-dark{margin-block:28px}
html[data-theme="field"] .fi-paper .section.fi-dark+.section.fi-dark{margin-top:-28px}
@media(max-width:900px){html[data-theme="field"] .fi-paper .hero::before{inset:0 0 auto;height:260px;opacity:.3}}
/* Hero plate: an empty slot beside the headline for one real picture later (a photo, or a report page once that release ships).
   No page uses it yet. One image fills the slot; two overlap like sheets of paper. Hidden in every other palette. */
html:not([data-theme="field"]) .fk-hero-plate{display:none}
html[data-theme="field"] .fk-hero-plate{margin:0 0 clamp(36px,5vw,72px);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-self:start;max-width:520px}
html[data-theme="field"] .fk-hero-plate img{grid-row:1;grid-column:1/10;width:100%;height:auto;border:1px solid var(--line);background:#fff}
html[data-theme="field"] .fk-hero-plate img:only-of-type{grid-column:1/-1}
html[data-theme="field"] .fk-hero-plate img+img{grid-column:4/13;margin-top:24%;box-shadow:-10px -10px 0 var(--bg)}
html[data-theme="field"] .fk-hero-plate figcaption{grid-column:1/-1;margin-top:12px;color:var(--muted);font:500 11px/1.6 var(--font-mono);letter-spacing:.1em}
@media(min-width:1100px){html[data-theme="field"] .fi-paper .hero-product-launch:has(.fk-hero-plate){grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);column-gap:48px}
 html[data-theme="field"] .fi-paper .hero-product-launch:has(.fk-hero-plate) .hero-showcase{grid-column:1/-1}}
/* Shaded photos (owner, 20 Nov 2026): one real photo at the top of a page, fading softly into the ivory paper on its left and
   lower edges. Sources and licences are in /assets/photos/CREDITS.md. Hidden in every other palette. */
html:not([data-theme="field"]) .fk-photo{display:none}
html[data-theme="field"] .fi-paper :is(.hero,.page-hero,.sc-hero):has(.fk-photo){position:relative;isolation:isolate}
html[data-theme="field"] .fk-photo{position:absolute;z-index:-2;inset:0 calc(50% - 50vw) auto 47%;height:min(100%,540px);margin:0;pointer-events:none}
html[data-theme="field"] .fk-photo img{display:block;width:100%;height:100%;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,transparent,#000 58%),linear-gradient(#000 52%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 58%),linear-gradient(#000 52%,transparent);mask-composite:intersect}
html[data-theme="field"] .fi-paper .hero:has(.fk-photo)::before{opacity:.5;mix-blend-mode:multiply}
@media(min-width:1100px){html[data-theme="field"] .fi-paper :is(.page-hero,.sc-hero):has(.fk-photo)>:not(.fk-photo,h1),html[data-theme="field"] .fi-paper .hero:has(.fk-photo) .hero-copy>:not(h1){max-width:min(100%,540px)}
 html[data-theme="field"] .fi-paper :is(.page-hero,.sc-hero):has(.fk-photo)>h1{max-width:min(100%,700px)}}
@media(max-width:1099px){html[data-theme="field"] .fk-photo{position:relative;z-index:0;inset:auto;height:auto;aspect-ratio:5/2;margin:16px 0 4px}
 html[data-theme="field"] .fk-photo img{-webkit-mask-image:linear-gradient(#000 45%,transparent);mask-image:linear-gradient(#000 45%,transparent)}
 html[data-theme="field"] .fi-paper .hero:has(.fk-photo)::before{display:none}}
/* Polish pass: more air between sections, a steadier type scale and firmer buttons on paper and in the dark bands. */
html[data-theme="field"] .fi-paper .section{padding-block:clamp(52px,6.4vw,92px)}
html[data-theme="field"] .fi-paper .section-head{margin-bottom:clamp(24px,3vw,40px)}
html[data-theme="field"] .fi-paper .section-head h2{font-size:clamp(30px,3.7vw,48px);line-height:1.06}
html[data-theme="field"] .fi-paper .section-head p:not(.eyebrow){font-size:clamp(16px,1.3vw,18px);line-height:1.6;max-width:62ch}
html[data-theme="field"] .fi-paper .eyebrow{font-size:12px;letter-spacing:.14em;color:var(--accent)}
html[data-theme="field"] .fi-paper :is(.hero-lede,.page-hero>p){font-size:clamp(17px,1.5vw,20px);line-height:1.6}
html[data-theme="field"] .fi-paper .button:not(.button-small){min-height:50px;padding:13px 22px;font-size:15.5px}
html[data-theme="field"] .fi-paper :is(.module-card,.detail-card) h3{letter-spacing:-.01em}
html[data-theme="field"] .fi-paper .card-link{font-weight:600}
@media(max-width:640px){html[data-theme="field"] .fk-photo{aspect-ratio:16/9}
 html[data-theme="field"] .fi-paper :is(.hero,.page-hero) h1{font-size:clamp(36px,10.4vw,46px);line-height:1.04}
 html[data-theme="field"] .fi-paper .section{padding-block:44px}}
