/* Studio Verde – "Lumen" design tokens and shared components (website + deck) */

:root {
  --night: #0a1612; --pine: #0f2620; --canopy: #15322a; --line-dark: rgba(237, 234, 225, .14);
  --sage: #7fb8a4; --sage-ink: #2f6b58; --sage-soft: #b9dcca; --mint: #9fd1be;
  --lumen: #eaf4d9; --paper: #f3f1ea; --ink: #0e1a16; --amber: #d9a65b;
  --text-dark: #edeae1; --muted-dark: #a3aea8; --muted-light: #4e6159; --line-light: #dcd9cf;
  --supply: #63d3e3; --exhaust: #e2674f;
  --serif: "Gloock", Georgia, serif; --sans: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace; --brand: "Jost", sans-serif;
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--night); color: var(--text-dark); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--mint); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

/* brand */
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.wordmark .wm { font-family: var(--brand); font-weight: 300; line-height: 1; }
.wordmark .wm b { display: block; font-weight: 300; font-size: 9.5px; letter-spacing: .46em; color: var(--mint); }
.wordmark .wm span { display: block; font-size: 19px; letter-spacing: .22em; margin-top: 3px; }
.mark { width: 36px; height: 36px; flex: none; }

/* type */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.display { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; margin: 0; }
.display em { font-style: normal; color: var(--sage-soft); }
.light .display em, .display.on-light em { color: var(--sage-ink); }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted-dark); max-width: 560px; }
.mono { font-family: var(--mono); }

/* buttons with depth */
.btn { --bg: var(--lumen); --fg: var(--night); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 99px; border: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 100%, white 18%), var(--bg) 55%, color-mix(in srgb, var(--bg) 88%, black)); color: var(--fg);
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 2px rgba(0, 0, 0, .25), 0 10px 26px -10px color-mix(in srgb, var(--bg) 70%, transparent);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 4px rgba(0, 0, 0, .25), 0 16px 34px -12px color-mix(in srgb, var(--bg) 80%, transparent); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18); }
.btn.dark { --bg: #14251f; --fg: var(--lumen); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -14px rgba(0, 0, 0, .6); }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--text-dark); box-shadow: inset 0 0 0 1px rgba(237, 234, 225, .28), inset 0 1px 0 rgba(255, 255, 255, .08); }
.light .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(14, 26, 22, .3); background: rgba(255, 255, 255, .5); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* spec labels */
.spec { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px;
  background: rgba(127, 184, 164, .14); color: var(--lumen); box-shadow: inset 0 0 0 1px rgba(127, 184, 164, .35); }
.spec i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 10px var(--sage); }
.spec.solid { background: var(--lumen); color: var(--night); box-shadow: none; }
.spec.solid i { background: var(--sage-ink); box-shadow: none; }
.spec.amber { background: rgba(217, 166, 91, .16); box-shadow: inset 0 0 0 1px rgba(217, 166, 91, .45); color: #f3d7a8; }
.spec.amber i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.spec.gmp { background: rgba(127, 184, 164, .9); color: var(--night); box-shadow: none; }
.spec.gmp i { background: var(--night); box-shadow: none; }
.light .spec { background: rgba(47, 107, 88, .1); color: var(--sage-ink); box-shadow: inset 0 0 0 1px rgba(47, 107, 88, .3); }

/* motifs */
.lumen-line { height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--lumen) 20%, var(--lumen) 80%, transparent); box-shadow: 0 0 22px 3px rgba(200, 236, 214, .45); }
.glow-top { position: absolute; inset: 0 0 auto 0; height: 640px; pointer-events: none; background: radial-gradient(55% 100% at 50% 0%, rgba(127, 184, 164, .28), transparent 70%); }
.trichome { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(159, 209, 190, .12) 1px, transparent 1.4px); background-size: 18px 18px; }
.trichome::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(234, 244, 217, .5) 1.1px, transparent 1.5px); background-size: 54px 54px; background-position: 9px 9px; animation: tri 7s ease-in-out infinite; opacity: 0; }
@keyframes tri { 0%, 100% { opacity: 0; } 50% { opacity: .55; } }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(127, 184, 164, .7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 184, 164, .7); } 70% { box-shadow: 0 0 0 12px rgba(127, 184, 164, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 184, 164, 0); } }

/* cards */
.card { background: var(--pine); border-radius: var(--r); padding: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.card.raise { background: var(--canopy); }
.light .card { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-light); }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted-light); }
.field input, .field textarea { min-height: 52px; border: 1px solid #cfccc2; border-radius: 16px; padding: 14px 16px; font: 16px var(--sans); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage-ink); box-shadow: 0 0 0 4px rgba(127, 184, 164, .25); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 99px; background: #e7e4da; }
.seg label { flex: 1 1 auto; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 99px; font: 500 14px var(--sans); color: var(--muted-light); transition: all .15s; }
.seg input:checked + span { background: var(--ink); color: var(--lumen); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 4px 12px -4px rgba(0, 0, 0, .4); }
.seg input:focus-visible + span { outline: 2px solid var(--sage-ink); outline-offset: 2px; }

/* cycle ring */
.ring { --p: 66; width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--sage) 0 calc(var(--p) * 1%), rgba(127, 184, 164, .15) 0); filter: drop-shadow(0 0 10px rgba(127, 184, 164, .35)); }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--pine); }
.ring > * { position: relative; text-align: center; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .trichome::after, .pulse { animation: none; } }

/* 3D facility */
.fac { position: relative; overflow: hidden; }
.fac canvas { display: block; width: 100%; height: 100%; }
.fac-labels { position: absolute; inset: 0; pointer-events: none; }
.fac-label { position: absolute; left: 0; top: 0; font: 500 11px/1 var(--mono); letter-spacing: .06em; padding: 6px 9px; border-radius: 99px; white-space: nowrap;
  background: rgba(10, 22, 18, .78); color: var(--text-dark); box-shadow: inset 0 0 0 1px rgba(159, 209, 190, .3); backdrop-filter: blur(4px); transition: background .2s, color .2s; }
.fac-label.fac-gmp { box-shadow: inset 0 0 0 1px rgba(127, 184, 164, .8); }
.fac-label.fac-exp { box-shadow: inset 0 0 0 1px var(--amber); }
.fac-label.fac-exp::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); vertical-align: 1px; }
.fac-label.sel { background: var(--lumen); color: var(--night); box-shadow: 0 0 18px rgba(234, 244, 217, .6); z-index: 2; }
.fac-gate { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 0; font: 500 14px var(--sans); background: var(--lumen); color: var(--night); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.fac-gate.on { background: var(--night); color: var(--lumen); box-shadow: inset 0 0 0 1px var(--lumen); }
