:root{
  --ink:#111111; --muted:#5f5e5a; --paper:#ffffff; --hairline:#d3d1c7;
  --f00:#efeae0; --f01:#97c459; --f02:#f26b5b; --f03:#d94f9e; --dark:#0b0b0b;
  --pad:clamp(20px,5.5vw,80px);
  --sans:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --surface:#f4f2ee; --solid:#111111; --solid-hover:#333333; --band:#111111; --danger:#b3261e;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
a{color:var(--ink)}
a:hover{color:var(--muted)}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.wrap{max-width:1440px;margin:0 auto}
.eyebrow{font-family:var(--mono);font-size:13px;font-weight:500;letter-spacing:.02em}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;font-size:16px;font-weight:600;text-decoration:none;border:1.5px solid var(--ink)}
.btn-solid{background:var(--solid);border-color:var(--solid);color:var(--paper)}
.btn-solid:hover{background:var(--solid-hover);border-color:var(--solid-hover);color:var(--paper)}
.btn-line:hover{background:var(--surface);color:var(--ink)}
h1,h2,h3{margin:0}
p{margin:0}

/* header */
.site-header{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.96);border-bottom:1px solid var(--hairline)}
.site-header .wrap{height:76px;padding:0 var(--pad);display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{width:38px;height:38px}
.wordmark{display:flex;flex-direction:column;line-height:1.15}
.wordmark small{font-size:10px;font-weight:500;letter-spacing:.22em}
.wordmark span{font-size:15px;font-weight:600;letter-spacing:.18em}
.nav{display:flex;align-items:center;gap:32px;font-size:15px;margin-left:auto}
.nav a{text-decoration:none}

/* hero */
.hero .wrap{padding:clamp(40px,7vw,96px) var(--pad);display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(40px,6vw,96px);align-items:center}
.hero h1{font-size:clamp(42px,5.4vw,78px);line-height:.98;font-weight:700;letter-spacing:-.03em;margin:22px 0 24px}
.hero .lede{font-size:clamp(17px,1.5vw,20px);line-height:1.5;max-width:540px}
.hero .ctas{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px}
.sticks{display:flex;align-items:flex-end;justify-content:center;gap:clamp(12px,1.8vw,24px);height:clamp(250px,34vw,480px)}
.stick{width:clamp(56px,6vw,88px);display:flex;flex-direction:column;align-items:center;padding-top:clamp(18px,2.4vw,36px);gap:4px}
.stick small{font-size:9px;font-weight:500;letter-spacing:.2em}
.stick span{font-size:clamp(28px,3vw,46px);font-weight:700;letter-spacing:-.04em;line-height:1}
/* the sticks step up 00 → 03: each project builds on the last */
.s00{background:var(--f00);height:70%}.s01{background:var(--f01);height:80%}.s02{background:var(--f02);height:90%}.s03{background:var(--f03);height:100%}

/* sections */
section{scroll-margin-top:80px}
.section .wrap{padding:clamp(56px,7vw,104px) var(--pad)}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:40px;flex-wrap:wrap}
.section h2{font-size:clamp(32px,3.2vw,46px);font-weight:700;letter-spacing:-.02em;line-height:1.05}
.section-head p{font-size:17px;line-height:1.5;max-width:460px}
.bordered{border-top:1px solid var(--hairline)}

/* projects */
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.card{padding:28px;min-height:360px;display:flex;flex-direction:column;gap:10px}
.card .label{font-size:11px;font-weight:500;letter-spacing:.22em}
.card .num{font-size:clamp(72px,6.6vw,96px);font-weight:700;line-height:.9;letter-spacing:-.04em}
.card h3{font-size:17px;font-weight:600;letter-spacing:.12em;margin-top:6px}
.card p{font-size:15px;line-height:1.5}
.card .spec{margin-top:auto;font-family:var(--mono);font-size:12px}
.stick,.card,.mini-grid div{color:#111111}
.c00{background:var(--f00)}.c01{background:var(--f01)}.c02{background:var(--f02)}.c03{background:var(--f03)}
.sampler{margin-top:20px;background:var(--dark);color:#fff;padding:28px 32px;display:flex;align-items:center;gap:32px}
.mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:104px;flex-shrink:0}
.mini-grid div{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;color:#111111}
.sampler .text{flex-grow:1;display:flex;flex-direction:column;gap:6px}
.sampler h3{font-size:19px;font-weight:600;letter-spacing:.12em}
.sampler p{font-size:16px;line-height:1.5}
.sampler .btn{border-color:#fff;color:#fff}
.sampler .btn:hover{background:#fff;color:#111111}

/* inside */
.inside{background:var(--f00)}
.inside .wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(40px,6vw,80px)}
.inside .copy{display:flex;flex-direction:column;gap:20px}
.inside .copy .big{font-size:clamp(17px,1.5vw,19px);line-height:1.55}
.inside .copy .small{font-size:15px;line-height:1.55}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
/* square tiles, like the Na/Mg/K grid mark */
.inside .wrap{align-items:start}
section[id]{scroll-margin-top:84px}
.tile{aspect-ratio:1;container-type:inline-size;border:2px solid var(--ink);background:#fff;color:var(--ink);padding:8% 8% 12%;display:flex;flex-direction:column}
.tile.fruit{position:relative;border-color:transparent;background:transparent}
.dash-frame{position:absolute;left:-2px;top:-2px;pointer-events:none}
.tile .anum{font-size:clamp(14px,7cqi,22px);font-weight:600;line-height:1}
.tile .sym{font-size:21cqi;font-weight:600;line-height:1;letter-spacing:-.01em;margin-top:max(4px,calc(8cqi - 6px))}
/* the + is scaled so its height and stroke match the capital letters */
.tile .sym .plus{display:inline-block;transform-origin:0 100%;transform:translate(-.04em,.1em) scale(1.44)}
.nw{white-space:nowrap}
/* headline lines are sized to always fit their column, so the breaks stay where they are written */
.hero-copy,.story .copy{container-type:inline-size}
.hero h1{font-size:clamp(34px,5.4vw,78px);font-size:min(78px,calc(100cqi / 9))}
.story h2.one-line{white-space:nowrap;font-size:clamp(24px,3.2vw,46px);font-size:min(clamp(32px,3.2vw,46px),calc(100cqi / 12.4))}
.dash-frame i{position:absolute;box-sizing:border-box;border:0 solid var(--ink)}
.tile .name{font-size:clamp(15px,10.3cqi,26px);font-weight:600;line-height:1.15;margin-top:auto}
.tile p{font-size:clamp(13px,8.3cqi,20px);line-height:1.35;margin-top:2.5cqi}

/* story */
.story .wrap{display:block}
.story .copy{display:flex;flex-direction:column;gap:20px;max-width:760px}
.story .copy p{font-size:18px;line-height:1.55;margin:0}
.story .copy .batch-note{font-family:var(--mono,'JetBrains Mono',ui-monospace,monospace);font-size:13px;opacity:.75}

/* feedback */
.feedback{border-top:1px solid var(--hairline)}
.fb-box{display:flex;align-items:center;justify-content:space-between;gap:32px}
.fb-copy{display:flex;flex-direction:column;gap:12px;max-width:760px}
.fb-copy h2{font-size:clamp(28px,2.6vw,38px)}
.fb-copy p{font-size:18px;line-height:1.55}
.fb-box .btn{flex-shrink:0}

/* join */
.join{background:var(--band);color:#fff}
.join .wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(40px,6vw,80px)}
.join h2{font-size:clamp(36px,3.8vw,54px)}
.join .copy{display:flex;flex-direction:column;gap:20px}
.join .copy p{font-size:18px;line-height:1.55}
.join a{color:#fff}
.form-box{background:#fff;color:var(--ink);align-self:start}
.form-fallback{padding:32px;display:flex;flex-direction:column;gap:14px;font-size:16px;line-height:1.5}
.form-fallback a{color:var(--ink);font-weight:600}

/* footer */
.site-footer .wrap{padding:36px var(--pad);display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;font-size:14px}
.site-footer .brandline{display:flex;align-items:center;gap:12px}
.site-footer img{width:28px;height:28px}
.site-footer nav{display:flex;gap:24px;flex-wrap:wrap}

/* responsive */
@media (max-width:1100px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .hero .wrap,.inside .wrap,.story .wrap,.join .wrap{grid-template-columns:1fr}
  .hero .ctas .btn{flex:1 1 220px}
  .sampler{flex-direction:column;align-items:flex-start;gap:18px}
  .fb-box{flex-direction:column;align-items:stretch}
}
@media (max-width:560px){
  .site-header .wrap{height:64px}
  .brand img{width:32px;height:32px}
  .wordmark small{font-size:9px}.wordmark span{font-size:13px;letter-spacing:.16em}
  .cards{grid-template-columns:1fr}
  .card{min-height:0}
  .tiles{gap:10px}
  .sampler .btn{width:100%}
}

/* header actions and the phone menu */
.site-header .wrap{position:relative}
.header-actions{display:flex;align-items:center;gap:10px}
.header-actions .btn{min-height:44px;padding:0 20px;font-size:15px}
.menu-btn{display:none;width:44px;height:44px;flex-shrink:0;border:1.5px solid var(--ink);background:none;color:var(--ink);cursor:pointer;padding:0;align-items:center;justify-content:center}
.menu-btn .bars{position:relative;display:block;width:18px;height:12px}
.menu-btn .bars i{position:absolute;left:0;width:18px;height:0;border-top:2px solid currentColor;transition:transform .15s,opacity .15s}
.menu-btn .bars i:nth-child(1){top:0}.menu-btn .bars i:nth-child(2){top:5px}.menu-btn .bars i:nth-child(3){top:10px}
.menu-btn[aria-expanded="true"] .bars i:nth-child(1){transform:translateY(5px) rotate(45deg)}
.menu-btn[aria-expanded="true"] .bars i:nth-child(2){opacity:0}
.menu-btn[aria-expanded="true"] .bars i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
@media (min-width:861px){.header-actions{margin-left:16px}}
@media (max-width:860px){
  .header-actions{margin-left:auto}
  .menu-btn{display:inline-flex}
  .nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;margin:0;background:var(--paper);border-bottom:1px solid var(--hairline);padding:4px var(--pad) 12px}
  .nav.open{display:flex}
  .nav a{display:flex;align-items:center;min-height:52px;font-size:18px;font-weight:600;border-bottom:1px solid var(--hairline)}
  .nav a:last-child{border-bottom:0}
}
.header-actions .btn{white-space:nowrap}
@media (max-width:560px){.header-actions{gap:8px}.header-actions .btn{padding:0 14px;font-size:14px}}
@media (max-width:380px){.header-actions{gap:6px}.header-actions .btn{padding:0 10px}.brand{gap:8px}}

/* story teaser on the home page */
.story .more{align-self:flex-start;margin-top:4px}

/* interest list form (sends to the Lab) */
.signup{padding:clamp(24px,3vw,36px);display:flex;flex-direction:column;gap:18px}
.signup .field{display:flex;flex-direction:column;gap:8px}
.signup .field label,.signup legend{font-size:14px;font-weight:600}
.signup input[type=text],.signup input[type=email]{height:48px;padding:0 14px;font:inherit;font-size:16px;border:1.5px solid var(--ink);background:var(--paper);color:var(--ink);border-radius:0;width:100%}
.signup fieldset{margin:0;padding:0;border:0;display:flex;flex-direction:column}
.signup legend{margin-bottom:6px;padding:0}
.signup .check{display:flex;align-items:center;gap:12px;min-height:44px;font-size:15px;cursor:pointer}
.signup .check input{width:20px;height:20px;margin:0;flex-shrink:0;accent-color:var(--ink)}
.signup .btn{width:100%;border:0;cursor:pointer;font-family:inherit}
.signup .btn:disabled{opacity:.5;cursor:default}
.signup .msg{font-size:14px;line-height:1.45;min-height:20px}
.signup .msg:empty{display:none}
.signup .msg.err{color:var(--danger)}
.signup .msg a{color:inherit;font-weight:600}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.thanks{padding:clamp(24px,3vw,36px);display:flex;flex-direction:column;gap:10px;font-size:16px;line-height:1.5}
.thanks strong{font-size:22px;letter-spacing:-.01em}
.thanks a{color:var(--ink);font-weight:600}

/* story page */
.story-page h1{font-weight:700;letter-spacing:-.02em;line-height:1.05;white-space:nowrap;font-size:clamp(28px,4vw,56px);font-size:min(56px,calc(100cqi / 12.4))}
.thanks:focus{outline:none}

/* tasting survey page */
.survey .wrap{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(40px,6vw,80px);align-items:start}
.survey .copy{display:flex;flex-direction:column;gap:20px}
.survey h1{font-size:clamp(34px,3.8vw,54px);font-weight:700;letter-spacing:-.02em;line-height:1.05}
.survey .copy p{font-size:18px;line-height:1.55}
.survey .form-box{border:2px solid var(--ink)}
.signup .q{display:flex;flex-direction:column}
.signup textarea{min-height:110px;padding:12px 14px;font:inherit;font-size:16px;border:1.5px solid var(--ink);background:var(--paper);color:var(--ink);border-radius:0;width:100%;resize:vertical}
.signup .mono-in{font-family:var(--mono);text-transform:uppercase}
.scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1.5px solid var(--ink)}
.scale label{position:relative;cursor:pointer}
.scale label+label{border-left:1.5px solid var(--ink)}
.scale input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.scale span{display:flex;align-items:center;justify-content:center;min-height:48px;font-size:17px;font-weight:600}
.scale input:checked+span{background:var(--ink);color:var(--paper)}
.scale input:focus-visible+span{outline:3px solid var(--ink);outline-offset:-6px}
.scale input:checked:focus-visible+span{outline-color:var(--paper)}
.scale-ends{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:6px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:860px){.survey .wrap{grid-template-columns:1fr}}

/* Dark version, same palette as the shop and the Lab. Follows the visitor's device setting. */
@media (prefers-color-scheme:dark){
  :root{--ink:#e8e6e1;--muted:#a3a19b;--paper:#1d1e20;--hairline:#35373a;--surface:#28292c;--solid:#d9d7d2;--solid-hover:#ffffff;--band:#141516;--dark:#141516;--danger:#ff8a80;color-scheme:dark}
  .site-header{background:rgba(29,30,32,.96)}
  .brand img,.site-footer img{filter:invert(1)}
  :is(.stick,.card,.mini-grid div){filter:saturate(.85) brightness(.93)}
  .inside{background:var(--surface)}
  .tile{background:var(--paper)}
  .form-box{background:var(--surface)}
  .join{border-top:1px solid var(--hairline)}
}
/* small phones: a little less padding so the element text still fits the squares */
@media (max-width:420px){.tile{padding:6% 6% 8%}.tiles{gap:8px}}
/* computers: a slightly smaller symbol and bottom padding leave room for bigger text in the same size squares */
@media (min-width:861px){.tile{padding:8% 8% 9%}.tile .sym{font-size:18cqi}}

/* story page: one full-width column, and the closing "Want to try it?" sits open (no box) at the same text size as the story */
.story-body{display:flex;flex-direction:column;gap:20px}
.story-page .copy{max-width:none}
@media (min-width:1000px){.story-page .story-body p{font-size:19px}}
.story-page ~ .feedback .fb-copy{max-width:none}
@media (min-width:1000px){.story-page ~ .feedback .fb-copy p{font-size:19px;line-height:1.55}}
/* footer always sits at the bottom of the window, even on short pages */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>main{flex:1 0 auto}
/* story page: "Want to try it?" sits down by the footer; spare space goes between it and the story */
main:has(.story-page){display:flex;flex-direction:column}
.story-page ~ .feedback{margin-top:auto;border-top:0}
