/* ==============================================================
   MÄO · VISUAL PROMPT LIBRARY
   -------------------------------------------------------------
   This file embeds the MÄO v2 Visual System tokens so the page
   runs SELF-CONTAINED. On the live site, replace the "INHERITED"
   block below with:  @import '/assets/css/global.css';
   and keep only the "LIBRARY-SPECIFIC" section.

   Non-negociables (guidelines v2.0):
     · Cero líneas   — no borders, rules, hairlines
     · Cero sombras  — no drop shadow, glow, bevel
     · Cero croma    — no accent colour, no hover blue
   Fields, whitespace and the dot · separate. Nothing else.
   ============================================================== */

/* =========================== INHERITED ======================= */
:root{
  --stone:#F9F8F6;
  --sand:#EAE5DE;
  --charcoal:#2B2A28;
  --espresso:#1E1D1B;

  --serif:'Playfair Display', Georgia, serif;
  --sans:'Inter', -apple-system, sans-serif;

  --t-eyebrow:12px; --t-body:16px; --t-h3:30px; --t-h2:44px; --t-h1:64px;
  --s1:8px; --s2:16px; --s3:24px; --s4:32px; --s5:48px; --s6:64px; --s7:96px; --s8:128px;

  --track:0.24em;
  --margin:9%;
  --maxw:1180px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--stone); color:var(--charcoal);
  font-family:var(--sans); font-weight:300; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit;}

.eyebrow{
  font-family:var(--sans); font-weight:500; font-size:var(--t-eyebrow);
  letter-spacing:var(--track); text-transform:uppercase;
}
.italic{font-style:italic;}
.wrap{max-width:var(--maxw); margin:0 auto; padding-left:var(--s5); padding-right:var(--s5);}

/* CTA chip — pill, outline, no fill, no shadow */
.chip{
  display:inline-block; border:1px solid currentColor; border-radius:999px;
  padding:6px 14px; font-size:10px; letter-spacing:.18em; text-transform:uppercase;
  font-weight:500; opacity:.8; background:none;
}

/* Buttons — flat, field-based, never shadowed */
.btn{
  display:inline-block;
  font-family:var(--sans); font-weight:500; font-size:12px;
  letter-spacing:.16em; text-transform:uppercase; cursor:pointer;
  border:none; border-radius:999px; padding:14px 26px;
  background:var(--espresso); color:var(--stone);
  transition:opacity .2s ease;
}
.btn:hover{opacity:.82;}
.btn-ghost{
  background:none; color:currentColor; padding:12px 22px;
  border:1px solid currentColor; opacity:.85;
}
.btn-ghost:hover{opacity:1;}

/* grain — 5%, only on flat fields, never on photography */
.grain{position:relative;}
.grain::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
}
.grain > *{position:relative; z-index:1;}

/* ========================= LIBRARY-SPECIFIC ================== */

/* ---- global site nav · adaptacion para AI Studio ----
   El nav global (/css/site-nav.css) es fixed y transparente sobre fondos claros.
   Aqui el hero es una foto oscura a sangre, asi que lo dejamos solido y en flujo:
   el hero arranca justo debajo y el menu se lee siempre. */
.site-nav .navbar{
  position:sticky; top:0; z-index:40;
  background:var(--stone);
  padding:var(--s3) 0;
}
.site-nav .navbar.scrolled{
  padding:var(--s3) 0;
  border-bottom:1px solid rgba(0,0,0,.05);
}
.site-nav .nav-container{
  max-width:var(--maxw);
  padding-left:var(--s5); padding-right:var(--s5);
}
@media (max-width:600px){
  .site-nav .nav-container{padding-left:var(--s3); padding-right:var(--s3);}
}
/* El reset del modulo (.site-nav .navbar a{color:inherit}) gana por especificidad
   y deja las pildoras charcoal sobre charcoal. Les devolvemos el color claro. */
.site-nav .navbar .btn-primary,
.site-nav .navbar .mobile-cta{color:var(--stone);}

/* ---- lightweight footer (stand-in for the global) ---- */

.pl-foot{background:var(--charcoal); color:var(--stone);}
.pl-foot .wrap{display:flex; justify-content:space-between; flex-wrap:wrap; gap:var(--s3);
  padding-top:var(--s6); padding-bottom:var(--s6);
  font-size:12px; letter-spacing:var(--track); text-transform:uppercase; opacity:.85;}
.pl-foot a{color:inherit; text-decoration:none; opacity:.8;}
.pl-foot a:hover{opacity:1;}

/* section rhythm */
.sec{padding-top:var(--s8); padding-bottom:var(--s8);}
.sec-label{display:flex; align-items:baseline; gap:var(--s2); margin-bottom:var(--s5);}
.sec-label .no{font-family:var(--serif); font-style:italic; font-size:22px; opacity:.45;}
.sec-label h2{font-family:var(--sans); font-weight:500; font-size:22px; margin:0;}
.lead{font-family:var(--serif); font-size:var(--t-h3); line-height:1.3; max-width:30ch; margin:0 0 var(--s4);}

/* ---- 01 · HERO — full-bleed plate render ---- */
.hero{position:relative; min-height:88vh; display:flex; align-items:flex-end; overflow:hidden; color:var(--stone);}
.hero-plate{position:absolute; inset:0; z-index:0;
  background:#151412 url('../img/collage/leather-tufted.jpg') center/cover no-repeat;
}
/* two-layer scrim: darker at left (text) and bottom, image breathes on the right */
.hero-scrim{position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(to right, rgba(20,19,17,.88) 0%, rgba(20,19,17,.52) 42%, rgba(20,19,17,.28) 100%),
    linear-gradient(to top, rgba(20,19,17,.82) 0%, rgba(20,19,17,.22) 52%, rgba(20,19,17,.32) 100%);}
.hero .wrap{position:relative; z-index:2; padding-top:var(--s8); padding-bottom:var(--s8);}
.hero h1{font-family:var(--serif); font-weight:400; font-size:clamp(38px, 6vw, 68px); line-height:1.06; margin:var(--s3) 0 var(--s3); max-width:20ch;}
.hero p.sub{max-width:48ch; font-size:18px; opacity:.9; margin:0 0 var(--s5);}
.hero .micro{margin-top:var(--s2); font-size:12px; letter-spacing:.14em; text-transform:uppercase; opacity:.6;}
/* the mark — MÄO's two dots (the diaeresis, lifted off the a). Drawn as SVG so it's exact in any font. */
.mark{display:inline-block; line-height:0; opacity:.55;}
.mark svg{width:100%; height:auto; display:block; fill:currentColor;}
.hero .mark{position:absolute; z-index:2; right:var(--margin); top:var(--margin); width:30px;}

/* ---- 02 · ARGUMENT — Sand field ---- */
.argument{background:var(--sand);}
.argument .wrap{max-width:820px;}
.argument p{font-family:var(--serif); font-size:clamp(22px,2.6vw,30px); line-height:1.35; margin:0;}
.argument p .italic{opacity:.85;}

/* ---- 03 · BASE PLATES ---- */
.plates-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:var(--s5);}
.plate-card{display:flex; flex-direction:column; gap:var(--s3);}
.plate-card .head{display:flex; align-items:baseline; justify-content:space-between; gap:var(--s2);}
.plate-card h3{font-family:var(--serif); font-weight:400; font-size:26px; margin:0; line-height:1.1;}
.plate-card .subtitle{font-size:12px; letter-spacing:.06em; opacity:.6; margin-top:6px;}
.plate-card .pillar{font-size:10px; letter-spacing:.18em; text-transform:uppercase; opacity:.55; white-space:nowrap;}
.plate-card .pillar.tbd{font-style:italic; text-transform:none; letter-spacing:.02em; font-family:var(--serif); font-size:12px;}

/* the copyable block — the one thing allowed to look like a terminal */
.block{
  background:var(--espresso); color:var(--stone);
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:11.5px; line-height:1.6; white-space:pre-wrap;
  padding:var(--s3); max-height:280px; overflow:auto; margin:0;
}
.block-actions{display:flex; align-items:center; gap:var(--s3);}

/* ---- 04 · GATE ---- */
.gate{background:var(--espresso); color:var(--stone);}
.gate .wrap{max-width:640px; text-align:center;}
.gate h2{font-family:var(--serif); font-weight:400; font-size:clamp(28px,4vw,44px); line-height:1.12; margin:0 0 var(--s3);}
.gate p.sub{opacity:.8; margin:0 auto var(--s5); max-width:44ch;}
.gate form{display:grid; gap:var(--s3); text-align:left;}
.gate .row{display:grid; grid-template-columns:1fr 1fr; gap:var(--s3);}
.field label{display:block; font-size:11px; letter-spacing:.16em; text-transform:uppercase; opacity:.6; margin-bottom:8px;}
.field input, .field select{
  width:100%; background:transparent; color:var(--stone);
  font-family:var(--sans); font-size:15px; font-weight:300;
  padding:14px 0; border:none; border-bottom:1px solid rgba(249,248,246,.25);
  border-radius:0;
}
.field select{padding:14px 8px 14px 0;}
.field select option{color:var(--charcoal);}
.field input:focus, .field select:focus{outline:none; border-bottom-color:rgba(249,248,246,.7);}
.gate .btn{background:var(--stone); color:var(--espresso); justify-self:start; margin-top:var(--s2);}
.gate .micro{margin-top:var(--s3); font-size:12px; letter-spacing:.10em; text-transform:uppercase; opacity:.55;}

/* ---- 05 · GRID (locked until gate) ---- */
.grid-sec[hidden]{display:none;}
.filters{display:flex; flex-direction:column; gap:var(--s3); margin-bottom:var(--s6);}
.filter-group{display:flex; flex-wrap:wrap; gap:10px; align-items:center;}
.filter[hidden]{display:none;}
.filter{
  font-family:var(--sans); font-weight:500; font-size:11px; letter-spacing:.14em;
  text-transform:uppercase; cursor:pointer; background:none;
  border:1px solid rgba(43,42,40,.35); border-radius:999px; padding:8px 16px;
  color:var(--charcoal); opacity:.75; transition:opacity .2s, background .2s, color .2s;
}
.filter:hover{opacity:1;}
.filter[aria-pressed="true"]{background:var(--espresso); color:var(--stone); border-color:var(--espresso); opacity:1;}

.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:var(--s4);}
.card[hidden]{display:none;}

/* image-free card — the FIELD is the visual. Alternating Espresso / Sand. */
.card{
  position:relative; display:flex; flex-direction:column;
  min-height:340px; padding:var(--s4); cursor:pointer;
  transition:opacity .2s ease;
}
.card:hover{opacity:.94;}
.card.f-espresso{background:var(--espresso); color:var(--stone);}
.card.f-sand{background:var(--sand); color:var(--charcoal);}
.card .mark{position:absolute; top:var(--s3); right:var(--s3); width:22px;}

.card .meta{margin-bottom:var(--s3);}
.card h3{font-family:var(--serif); font-weight:400; font-size:24px; margin:0 0 10px; line-height:1.14; max-width:16ch;}
.card .note{font-weight:300; font-size:13.5px; line-height:1.55; opacity:.72; margin:0 0 var(--s3); max-width:38ch;}

/* model tags — which tools the prompt is written for */
.card .models{
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  opacity:.55; margin:0 0 var(--s4);
}
.card .foot{margin-top:auto; display:flex; align-items:center; gap:var(--s3);}

/* COPY is the primary action — filled, field-adaptive, no shadow */
.card .copy-prompt{border:none;}
.card.f-espresso .copy-prompt{background:var(--stone); color:var(--espresso);}
.card.f-sand .copy-prompt{background:var(--espresso); color:var(--stone);}
.card .expand{font-size:11px; letter-spacing:.12em; text-transform:uppercase; opacity:.6;}

/* ---- 06 · NEVER — Espresso field, the showcase ---- */
.never{background:var(--espresso); color:var(--stone);}
.never .wrap{max-width:900px;}
.never .lead{color:var(--stone);}
.never pre{
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:13px; line-height:1.8; white-space:pre-wrap; margin:0; opacity:.92;
}

/* ---- 07 · CLOSE ---- */
.close{background:var(--sand); text-align:center;}
.close .wrap{max-width:720px;}
.close h2{font-family:var(--serif); font-weight:400; font-size:clamp(28px,4vw,44px); line-height:1.15; margin:0 0 var(--s5);}

/* ---- full-prompt modal (replaces image lightbox) ---- */
.lightbox{position:fixed; inset:0; z-index:60; display:none; align-items:center; justify-content:center;
  background:rgba(20,19,17,.94); padding:var(--s5);}
.lightbox[data-open="true"]{display:flex;}
.lb-panel{position:relative; background:var(--espresso); color:var(--stone);
  width:min(760px,94vw); max-height:86vh; display:flex; flex-direction:column; padding:var(--s5);}
.lb-panel .lb-eyebrow{font-size:11px; letter-spacing:.18em; text-transform:uppercase; opacity:.6; margin-bottom:10px;}
.lb-panel h3{font-family:var(--serif); font-weight:400; font-size:28px; margin:0 0 var(--s3); line-height:1.12;}
.lb-panel pre{font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px; line-height:1.65;
  white-space:pre-wrap; margin:0 0 var(--s4); overflow:auto; opacity:.92;}
.lb-panel .lb-copy{background:var(--stone); color:var(--espresso); align-self:flex-start;}
.lightbox .lb-close{position:absolute; top:var(--s3); right:var(--s4); background:none; border:none;
  color:var(--stone); font-family:var(--serif); font-size:30px; line-height:1; cursor:pointer; opacity:.7;}
.lightbox .lb-close:hover{opacity:1;}

/* ---- feedback state on copy buttons (no toast, no animation) ---- */
.is-copied{opacity:1;}

/* ---- COLLAGE — the brand's editorial photography (landing). One system, endless output. ---- */
.collage{ padding-top:var(--s7); padding-bottom:var(--s7); background:var(--stone); }
.collage .collage-eyebrow{ text-align:center; opacity:.6; margin-bottom:var(--s5); }
.collage-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.collage-grid figure{ margin:0; overflow:hidden; background:var(--espresso); }
.collage-grid img{ width:100%; height:100%; aspect-ratio:3/4; object-fit:cover; display:block; }
.collage-cap{ text-align:center; margin-top:var(--s5); font-size:14px; opacity:.62; max-width:52ch; margin-left:auto; margin-right:auto; }

/* ---- TEASER — a framed preview of the library: sharp filters up top, blurred prompts below.
       Built at a fixed width and scaled to fit (JS), so phone looks identical to desktop. ---- */
.teaser{ padding-top:var(--s6); padding-bottom:var(--s7); background:var(--stone); }
.teaser-inner{ overflow:hidden; }
.teaser-scale{ width:1080px; transform-origin:top left; }   /* scaled by fitTeaser() */
.teaser-frame{ position:relative; overflow:hidden; background:var(--sand); padding:var(--s5) var(--s5) 0; }
/* the real selector, kept sharp (static, non-interactive) */
.teaser-filters{ display:flex; flex-direction:column; gap:var(--s3); margin-bottom:var(--s5); pointer-events:none; }
.tf-row{ display:flex; flex-wrap:wrap; gap:10px; }
/* the prompts, blurred */
.teaser-grid{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:var(--s4);
  max-height:520px; overflow:hidden;
  filter:blur(4px); opacity:.95; pointer-events:none; user-select:none;
}
.teaser-grid .card{ cursor:default; }
.teaser-frame .card.f-sand{ background:var(--stone); }   /* light cards stay visible on the Sand frame */
/* fade the prompts into the frame */
.teaser-fade{ position:absolute; left:0; right:0; bottom:0; height:250px;
  background:linear-gradient(to bottom, rgba(234,229,222,0) 0%, var(--sand) 80%); pointer-events:none; }
.teaser-cap{ text-align:center; margin-top:var(--s4);
  font-size:13px; letter-spacing:.16em; text-transform:uppercase; opacity:.6; }

/* =========================== RESPONSIVE ====================== */
@media (max-width:900px){
  :root{--s8:88px; --s7:72px;}
  .plates-grid{grid-template-columns:1fr;}
  .cards{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .wrap{padding-left:var(--s3); padding-right:var(--s3);}
  .cards{grid-template-columns:1fr;}
  .collage-grid{grid-template-columns:repeat(2,1fr);}
  /* teaser is a fixed-width preview scaled by JS — no mobile reflow (stays identical to desktop) */
  .gate .row{grid-template-columns:1fr;}
  .filter-group + .filter-group{margin-left:0; width:100%;}
}
