/* Mientras el agua — Laura Villegas Sernaitis */

@font-face { font-family: "Marcellus"; src: url("fonts/Marcellus-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-normal.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }

:root {
  /* the clay's stages */
  --crudo: #e0dfdb;
  --bizcocho: #ebddd3;
  --quema: #eed8c5;
  --enfriamiento: #dbdcd8;
  --engobe: #f4f3ef;

  --ink: #23201d;
  --ink-2: #5a4d44;
  --ink-3: #7b746c;
  --flash: #a3441a;
  --flash-soft: #c96a3a;
  --rule: rgba(35, 32, 29, .2);
  --rule-strong: rgba(35, 32, 29, .55);

  --ground: var(--crudo);

  --f-display: "Marcellus", "Optima", "Candara", serif;
  --f-text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-read: "Literata", Georgia, serif;

  --s-xl: clamp(3rem, 7.2vw, 6rem);
  --s-l: clamp(2.35rem, 4.6vw, 4.25rem);
  --s-m: clamp(1.55rem, 2.5vw, 2.3rem);
  --s-s: clamp(1.2rem, 1.5vw, 1.45rem);
  --s-meta: .78rem;

  --gut: clamp(1.25rem, 4vw, 4rem);
  --max: 92rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

[data-ground="bizcocho"] { --ground: var(--bizcocho); }
[data-ground="quema"] { --ground: var(--quema); }
[data-ground="enfriamiento"] { --ground: var(--enfriamiento); }
[data-ground="engobe"] { --ground: var(--engobe); }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ground);
  color: var(--ink);
  transition: background-color 1.4s var(--ease);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  position: relative;
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
/* the clay grain, taken from her own carved surface */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("grano.webp") 0 0 / 420px 420px repeat;
  mix-blend-mode: soft-light;
  opacity: .32;
}
[data-ground="engobe"] body::before { opacity: .18; }

::selection { background: var(--flash); color: var(--engobe); }
:focus-visible { outline: 1.5px solid var(--flash); outline-offset: 4px; border-radius: 1px; }
html { scrollbar-color: var(--ink-3) transparent; scrollbar-width: thin; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--flash); }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--engobe); padding: .5rem .8rem; z-index: 100; }
.skip:focus { left: .5rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.meta { font-size: var(--s-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.arrow { display: inline-block; width: 1.1em; height: .7em; vertical-align: .05em; margin-left: .45em; transition: transform .5s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(.25em); }
.link {
  display: inline-flex; align-items: baseline; gap: 0;
  font-size: .92rem; letter-spacing: .02em;
  text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: .2rem;
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.link:hover { border-color: var(--flash); color: var(--flash); }

/* ---------- header ---------- */
.top {
  position: relative; z-index: 20;
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding: 1.6rem var(--gut);
  max-width: var(--max); margin: 0 auto;
}
.top--over { position: absolute; inset: 0 0 auto 0; max-width: none; color: #f6f3ee; }
.brand { font-family: var(--f-display); font-size: 1.35rem; text-decoration: none; letter-spacing: -.005em; white-space: nowrap; }
.nav { display: flex; align-items: baseline; gap: clamp(1rem, 2vw, 2rem); font-size: .9rem; }
.nav a { text-decoration: none; padding: .25rem 0; border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"], .nav a.act { border-color: currentColor; }
.nav .lang { font-size: .78rem; letter-spacing: .08em; opacity: .8; }
.menu-btn { display: none; background: none; border: 0; padding: .4rem 0; cursor: pointer; font-size: .9rem; letter-spacing: .02em; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: .2rem; padding: 1rem var(--gut) 1.6rem; background: var(--engobe); color: var(--ink); box-shadow: 0 18px 30px -18px rgba(35,32,29,.35); }
  .nav a { font-family: var(--f-display); font-size: 1.6rem; padding: .3rem 0; }
  .nav .lang { font-family: var(--f-text); font-size: .85rem; padding-top: .8rem; }
  .top.is-open .nav { display: flex; }
}

/* ---------- the stage rule (crudo · bizcocho · quema · enfriamiento) ---------- */
.etapas {
  position: fixed; right: clamp(.6rem, 1.2vw, 1.4rem); top: 50%; transform: translateY(-50%);
  z-index: 15; list-style: none; margin: 0; padding: 0;
  display: grid; gap: .5rem; justify-items: center;
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  transition: opacity .8s var(--ease);
}
.etapas li { writing-mode: vertical-rl; transform: rotate(180deg); padding: .2rem 0 .2rem .45rem; border-left: 1px solid transparent; transition: color .9s var(--ease), border-color .9s var(--ease); }
.etapas li.is-on { color: var(--ink); border-left-color: var(--flash); }
.etapas.on-hero { color: rgba(246, 243, 238, .7); }
.etapas.on-hero li.is-on { color: #f6f3ee; }
@media (max-width: 760px) { .etapas { display: none; } }
.obra-stage .plate-slot { text-decoration: none; cursor: pointer; }

/* ---------- home hero ---------- */
.hero { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; color: #f6f3ee; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(31, 26, 22, .62) 0%, rgba(31, 26, 22, .22) 42%, rgba(31, 26, 22, 0) 62%),
  linear-gradient(to bottom, rgba(31, 26, 22, .35), rgba(31, 26, 22, 0) 22%); }
.hero-text { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: clamp(2rem, 7vh, 4.5rem); max-width: 60rem; }
.hero-text .p1 { font-family: var(--f-read); font-style: normal; font-weight: 300; font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.45; max-width: 34rem; margin: 0 0 1.1rem; }
.hero-text h1 { font-family: var(--f-read); font-style: italic; font-weight: 300; font-size: clamp(3rem, 7.4vw, 6rem); line-height: .98; letter-spacing: -.02em; }
.hero-text .credit { margin: 1.6rem 0 0; font-size: .84rem; letter-spacing: .03em; opacity: .92; }

/* ---------- sections ---------- */
.sec { padding: clamp(5rem, 13vh, 9rem) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem var(--gut); align-items: end; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.sec-head h2 { font-size: var(--s-l); line-height: 1; }
.sec-head p { margin: 0; max-width: 34rem; color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 1rem; } }

.intro { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem var(--gut); align-items: end; }
.intro blockquote { margin: 0; font-family: var(--f-display); font-size: var(--s-m); line-height: 1.28; letter-spacing: -.005em; text-wrap: pretty; }
.intro .side p { color: var(--ink-2); max-width: 26rem; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* ---------- obra: the stage where one piece stands alone ---------- */
.obra-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gut); }
.obra-list { list-style: none; margin: 0; padding: 0; counter-reset: o; align-self: start; }
.obra-list li { border-top: 1px solid var(--rule); }
.obra-list li:last-child { border-bottom: 1px solid var(--rule); }
.obra-list a { display: block; padding: 1.35rem 0 1.4rem; text-decoration: none; transition: opacity .6s var(--ease); }
.obra-list .t { display: block; font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.05; letter-spacing: -.01em; }
.obra-list .s { display: block; font-family: var(--f-read); font-style: italic; font-weight: 300; font-size: 1.02rem; color: var(--ink-2); margin-top: .3rem; }
.obra-list .m { display: block; margin-top: .55rem; }
.obra-list .go { display: inline-flex; align-items: baseline; margin-top: .9rem; font-size: .88rem; color: var(--ink); opacity: 0; transition: opacity .5s var(--ease); }
.obra-grid.has-active .obra-list a { opacity: .38; }
.obra-grid.has-active .obra-list a.is-active { opacity: 1; }
.obra-list a.is-active .go { opacity: 1; }
.obra-list .mob { display: none; }

.obra-stage { position: sticky; top: 6vh; height: 86vh; container-type: size; }
.obra-stage .plate-slot { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.obra-stage .plate-slot.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.obra-stage .plate { width: min(100cqw, calc(100cqh * var(--r))); }

@media (max-width: 860px) {
  .obra-grid { grid-template-columns: 1fr; }
  .obra-stage { display: none; }
  .obra-grid.has-active .obra-list a { opacity: 1; }
  .obra-list a { padding: 1.6rem 0 2rem; }
  .obra-list .mob { display: block; margin-top: 1.2rem; }
  .obra-list .go { opacity: 1; }
}

/* ---------- plates (a photograph treated as an object, with its annotations) ---------- */
.plate { position: relative; aspect-ratio: var(--r); margin: 0; }
.plate img { width: 100%; height: 100%; object-fit: cover; background: rgba(35,32,29,.06); }
.plate .zoom { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }

.notes { position: absolute; inset: 0; pointer-events: none; }
.note {
  position: absolute; top: calc(var(--y) * 100%); display: flex; align-items: center;
  transform: translateY(-50%);
}
.note--right { left: calc(var(--x) * 100%); right: 3%; }
.note--left { right: calc((1 - var(--x)) * 100%); left: 3%; flex-direction: row-reverse; }
.note .dot { flex: none; width: 9px; height: 9px; margin: 0 -4.5px; border-radius: 50%; border: 1.5px solid var(--engobe); background: var(--ink); box-shadow: 0 1px 3px rgba(35,32,29,.35); position: relative; z-index: 1; }
.note .lead { flex: 1 1 auto; min-width: 1.5rem; height: 1px; background: var(--engobe); box-shadow: 0 0 0 .5px rgba(35,32,29,.18); transform-origin: left center; transition: transform 1.1s var(--ease) .15s; }
.note--left .lead { transform-origin: right center; }
.note .tag {
  flex: 0 1 auto; max-width: 15rem; background: var(--engobe); color: var(--ink);
  font-size: .74rem; line-height: 1.35; letter-spacing: .01em; padding: .45rem .6rem .5rem;
  box-shadow: 0 6px 14px -8px rgba(35,32,29,.45);
  transition: opacity .7s var(--ease) .5s;
}
.plate-slot:not(.is-active) .note .lead { transform: scaleX(0); }
.plate-slot:not(.is-active) .note .tag { opacity: 0; }
.plate-notes-list { display: none; list-style: none; margin: .9rem 0 0; padding: 0; font-size: .82rem; color: var(--ink-2); }
.plate-notes-list li { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .35rem; }
.plate-notes-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); transform: translateY(-.05em); }
@media (max-width: 860px) {
  .notes { display: none; }
  .plate-notes-list { display: block; }
}

/* ---------- fire (videos) ---------- */
.fuego { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); align-items: start; }
.fuego-text h2 { font-size: var(--s-l); line-height: 1; margin-bottom: 1.5rem; }
.fuego-text p { color: var(--ink-2); max-width: 24rem; font-size: 1.05rem; }
.films { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 2.5rem); }
.films .film:nth-child(2) { margin-top: clamp(3rem, 14vh, 9rem); }
@media (max-width: 860px) { .fuego { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .films { grid-template-columns: 1fr; gap: 3rem; } .films .film { width: 84%; } .films .film:nth-child(2) { margin: 0 0 0 auto; } }

.film { margin: 0; }
.film .frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #cfc8bf; box-shadow: 0 30px 60px -40px rgba(35,32,29,.55); }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film .ctrl { position: absolute; left: .8rem; bottom: .8rem; display: flex; gap: .45rem; }
.film .ctrl button {
  border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(244, 243, 239, .88); color: var(--ink); padding: .45rem .7rem; font-size: .74rem; letter-spacing: .02em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .3s var(--ease);
}
.film .ctrl button:hover { background: var(--engobe); }
.film .ctrl svg { width: 12px; height: 12px; }
.film figcaption { margin-top: 1rem; }
.film figcaption a { font-family: var(--f-display); font-size: 1.45rem; text-decoration: none; display: inline-flex; align-items: baseline; }
.film figcaption .meta { display: block; margin-top: .25rem; }

/* ---------- writing ---------- */
.textos { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); }
.textos-lead p { font-family: var(--f-read); font-style: italic; font-weight: 300; font-size: var(--s-s); line-height: 1.45; margin: 0 0 .5rem; max-width: 22rem; }
.textos-lead .link { margin-top: 1.6rem; }
@media (max-width: 860px) { .textos { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.25rem, 3vw, 2.75rem); text-decoration: none; padding-bottom: clamp(2rem, 5vh, 3rem); margin-bottom: .5rem; }
.feature .cover { aspect-ratio: 4 / 5; overflow: hidden; }
.feature .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.feature:hover .cover img { transform: scale(1.025); }
.feature h3 { font-size: var(--s-m); line-height: 1.08; margin: .7rem 0 .6rem; }
.feature .sub { font-family: var(--f-read); font-style: italic; font-weight: 300; color: var(--ink-2); margin-bottom: 1.2rem; }
.feature .ex { font-family: var(--f-read); font-size: 1.04rem; line-height: 1.65; color: var(--ink); }
.feature .go { color: var(--ink); font-size: .9rem; }
.feature .meta { display: block; margin: -.4rem 0 1rem; }
@media (max-width: 620px) { .feature { grid-template-columns: 1fr; } }

.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li { border-top: 1px solid var(--rule); }
.tlist li:last-child { border-bottom: 1px solid var(--rule); }
.tlist a { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: .2rem 1.5rem; align-items: baseline; padding: 1.15rem 0 1.25rem; text-decoration: none; }
.tlist time, .tlist .r { font-size: var(--s-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tlist .t { font-family: var(--f-display); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.15; transition: color .4s var(--ease); }
.tlist .s { grid-column: 2; font-family: var(--f-read); font-style: italic; font-weight: 300; color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
.tlist a:hover .t { color: var(--flash); }
@media (max-width: 620px) { .tlist a { grid-template-columns: 1fr auto; } .tlist time { grid-column: 1 / -1; order: 3; } .tlist .s { grid-column: 1 / -1; } }

/* ---------- work together ---------- */
.juntos { list-style: none; margin: 0; padding: 0; }
.juntos li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 1rem var(--gut); align-items: baseline; padding: clamp(1.6rem, 4vh, 2.6rem) 0; border-top: 1px solid var(--rule); }
.juntos li:last-child { border-bottom: 1px solid var(--rule); }
.juntos h3 { font-size: var(--s-l); line-height: 1; }
.juntos p { margin: 0; color: var(--ink-2); max-width: 28rem; font-size: 1.05rem; }
.juntos .link { justify-self: start; }
@media (max-width: 860px) { .juntos li { grid-template-columns: 1fr; } }

/* ---------- footer / contact ---------- */
.foot { padding: clamp(5rem, 12vh, 8rem) 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem var(--gut); align-items: end; }
.foot h2 { font-size: var(--s-l); line-height: 1; margin-bottom: 1.2rem; }
.foot .lede { color: var(--ink-2); max-width: 28rem; margin-bottom: 2.2rem; }
.foot .mail { font-family: var(--f-display); font-size: clamp(1.5rem, 3.3vw, 2.9rem); line-height: 1.1; text-decoration: none; border-bottom: 1px solid var(--rule-strong); overflow-wrap: anywhere; transition: border-color .4s var(--ease), color .4s var(--ease); }
.foot .mail:hover { color: var(--flash); border-color: var(--flash); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.foot-links a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.foot-links a span:last-child { color: var(--ink-2); font-size: .9rem; }
.foot-links a:hover span:first-child { color: var(--flash); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(4rem, 10vh, 7rem); padding-top: 1.4rem; border-top: 1px solid var(--rule); font-size: .82rem; color: var(--ink-2); }
.foot-base nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot-base a { text-decoration: none; }
.foot-base a:hover { color: var(--ink); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- project page ---------- */
.p-hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); align-items: end; padding-top: clamp(2rem, 6vh, 4rem); }
.p-hero h1 { font-size: var(--s-l); line-height: 1; }
.p-hero .sub { font-family: var(--f-read); font-style: italic; font-weight: 300; font-size: var(--s-s); color: var(--ink-2); margin: .9rem 0 0; }
.p-hero .meta { margin-top: 1.4rem; }
.p-hero .stage { height: min(84vh, 62rem); container-type: size; display: grid; place-items: center end; }
.p-hero .stage .plate { width: min(100cqw, calc(100cqh * var(--r))); }
.p-hero .film { width: min(100%, calc(min(84vh, 62rem) * 9 / 16)); justify-self: end; }
@media (max-width: 860px) {
  .p-hero { grid-template-columns: 1fr; }
  .p-hero .stage { height: auto; container-type: normal; display: block; }
  .p-hero .stage .plate { width: 100%; }
  .p-hero .film { width: 100%; max-width: 26rem; justify-self: start; }
}

.p-text { padding: clamp(4rem, 11vh, 7rem) 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); }
.p-text .body { max-width: 40rem; font-family: var(--f-read); font-size: 1.16rem; line-height: 1.72; }
.p-text .body p:first-child { font-size: var(--s-s); line-height: 1.5; }
.p-text .verse p { font-family: var(--f-read); font-weight: 300; font-size: clamp(1.35rem, 2.2vw, 1.95rem); line-height: 1.42; margin: 0 0 .55em; max-width: 34rem; }
.p-text .essay-link { margin-top: 2rem; font-family: var(--f-text); font-size: 1rem; color: var(--ink-2); }
.p-text .essay-link a { display: inline-block; margin-top: .6rem; font-family: var(--f-display); font-size: var(--s-s); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.p-text .essay-link a:hover { color: var(--flash); border-color: var(--flash); }
@media (max-width: 860px) { .p-text { grid-template-columns: 1fr; } .p-text > .meta { display: none; } }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.6vw, 2.6rem); align-items: start; padding-bottom: clamp(4rem, 10vh, 7rem); }
.gallery .plate { grid-column: span 6; }
.gallery .plate.w-full { grid-column: 2 / span 10; }
.gallery .plate.w-wide { grid-column: span 7; }
.gallery .plate.w-narrow { grid-column: span 5; }
.gallery .plate.off { margin-top: clamp(2rem, 9vh, 7rem); }
.gallery .plate.w-solo { grid-column: 4 / span 6; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .plate, .gallery .plate.w-wide, .gallery .plate.w-narrow { grid-column: span 1; }
  .gallery .plate.w-full, .gallery .plate.w-solo { grid-column: 1 / -1; }
  .gallery .plate.off { margin-top: 2.5rem; }
}

.next-p { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding: clamp(2.5rem, 6vh, 4rem) 0; border-top: 1px solid var(--rule); text-decoration: none; }
.next-p .t { font-family: var(--f-display); font-size: var(--s-l); line-height: 1; display: block; transition: color .4s var(--ease); }
.next-p img { width: clamp(5rem, 12vw, 9rem); aspect-ratio: 4 / 5; object-fit: cover; }
.next-p:hover .t { color: var(--flash); }

/* ---------- essay ---------- */
.essay { padding: clamp(2rem, 6vh, 4rem) 0 clamp(4rem, 10vh, 6rem); }
.essay-head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 7vh, 4.5rem); text-align: left; }
.essay-head h1 { font-size: var(--s-l); line-height: 1.02; }
.essay-head .sub { font-family: var(--f-read); font-style: italic; font-weight: 300; font-size: var(--s-s); line-height: 1.45; color: var(--ink-2); margin: 1.1rem 0 1.6rem; }
.essay-head .note { font-size: .88rem; color: var(--ink-2); margin-top: 1rem; }
.essay-cover { max-width: 62rem; margin: 0 auto clamp(2.5rem, 7vh, 4.5rem); }
.prose { max-width: 38rem; margin: 0 auto; font-family: var(--f-read); font-size: 1.17rem; line-height: 1.75; hyphens: auto; }
.prose p { margin: 0 0 1.15em; text-wrap: pretty; }
.prose > p:first-of-type::first-letter { font-family: var(--f-display); float: left; font-size: 4.1em; line-height: .82; padding: .08em .1em 0 0; color: var(--ink); }
.prose h2 { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.2; margin: 2.4em 0 .9em; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 1.4rem; border-left: 1px solid var(--rule-strong); font-style: italic; font-weight: 300; color: var(--ink-2); }
.prose figure { margin: 2.6em -6rem; }
.prose figure img { width: 100%; }
.prose figcaption { font-family: var(--f-text); font-size: .8rem; color: var(--ink-2); margin-top: .6rem; padding: 0 6rem; }
@media (max-width: 1000px) { .prose figure { margin: 2.2em 0; } .prose figcaption { padding: 0; } }
.essay-end { max-width: 38rem; margin: clamp(3rem, 8vh, 5rem) auto 0; padding-top: 2rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; align-items: baseline; }

/* ---------- about ---------- */
.laura { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gut); padding-top: clamp(2rem, 6vh, 4rem); align-items: start; }
.laura .portrait { position: sticky; top: 6vh; }
.laura h1 { font-size: var(--s-xl); line-height: 1; margin-bottom: 2rem; }
.laura .bio { font-family: var(--f-read); font-size: 1.16rem; line-height: 1.75; max-width: 38rem; }
.laura .bio p:first-child { font-size: var(--s-s); line-height: 1.5; }
.laura .second { margin: 3rem 0 0; max-width: 26rem; }
@media (max-width: 860px) { .laura { grid-template-columns: 1fr; } .laura .portrait { position: static; } }

/* ---------- pieces ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem var(--gut); align-items: end; padding: clamp(2rem, 6vh, 4rem) 0 clamp(3rem, 8vh, 5rem); }
.page-head h1 { font-size: var(--s-xl); line-height: 1; }
.page-head p { margin: 0 0 .8rem; max-width: 36rem; font-size: 1.05rem; color: var(--ink-2); }
.page-head p:first-child { color: var(--ink); font-family: var(--f-read); font-size: var(--s-s); line-height: 1.5; }
@media (max-width: 860px) { .page-head { grid-template-columns: 1fr; } }

.piezas { display: grid; gap: clamp(5rem, 14vh, 9rem); padding-bottom: clamp(5rem, 12vh, 8rem); }
.pieza { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gut); align-items: end; scroll-margin-top: 3rem; }
.pieza .plate { justify-self: start; width: min(100%, calc(min(78vh, 52rem) * var(--r))); }
.pieza:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.pieza:nth-child(even) .plate { order: 2; justify-self: end; }
.pieza .info { display: grid; gap: .35rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); transition: border-color .6s var(--ease); max-width: 22rem; }
.pieza h2 { font-size: var(--s-m); line-height: 1.05; }
.pieza .mat { font-size: .9rem; color: var(--ink-2); }
.pieza .price { font-size: var(--s-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pieza.is-chosen .info { border-top-color: var(--flash); }
@media (max-width: 860px) {
  .pieza, .pieza:nth-child(even) { grid-template-columns: 1fr; gap: 1.2rem; }
  .pieza:nth-child(even) .plate { order: 0; justify-self: start; }
  .pieza .plate { width: 100%; }
}
.pick {
  justify-self: start; margin-top: .8rem; display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--rule-strong); padding: 0 0 .25rem; font-size: .92rem; letter-spacing: .02em;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.pick:hover { color: var(--flash); border-color: var(--flash); }
.pick svg { width: 11px; height: 11px; }
.pick[aria-pressed="true"] { color: var(--flash); border-color: var(--flash); }

.tray {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 160%); z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; max-width: calc(100vw - 2rem);
  background: var(--engobe); padding: .8rem .9rem .8rem 1.2rem;
  box-shadow: 0 20px 40px -18px rgba(35,32,29,.5), 0 1px 0 rgba(35,32,29,.06);
  transition: transform .7s var(--ease);
}
.tray:not(.is-on) { visibility: hidden; transition: transform .7s var(--ease), visibility 0s linear .7s; }
.tray.is-on { transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .tray { left: .75rem; right: .75rem; transform: translateY(160%); max-width: none; justify-content: space-between; }
  .tray.is-on { transform: translateY(0); }
  .tray .acts { width: 100%; }
  .tray .acts .btn { flex: 1 1 auto; justify-content: center; }
}
.tray .count { font-family: var(--f-display); font-size: 1.15rem; }
.tray .acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--engobe); border: 1px solid var(--ink); padding: .6rem 1rem; font-size: .88rem; letter-spacing: .02em;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--flash); border-color: var(--flash); }
.btn--ghost { background: none; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: none; color: var(--flash); border-color: var(--flash); }
.btn svg { width: 14px; height: 14px; }

/* ---------- commissions & workshops ---------- */
.ofrece { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem var(--gut); padding: clamp(3.5rem, 9vh, 6rem) 0; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.ofrece h2 { font-size: var(--s-l); line-height: 1; }
.ofrece .txt { font-family: var(--f-read); font-size: 1.16rem; line-height: 1.72; max-width: 36rem; }
.ofrece .txt p:first-child { font-size: var(--s-s); line-height: 1.5; }
.ofrece figure { margin: 2.2rem 0 0; max-width: 30rem; }
@media (max-width: 860px) { .ofrece { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.4rem; max-width: 36rem; }
.form label { display: grid; gap: .45rem; font-size: var(--s-meta); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: inherit; font-family: var(--f-text); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); padding: .5rem 0; border-radius: 0; caret-color: var(--flash);
  transition: border-color .3s var(--ease);
}
.form select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2357514b' stroke-width='1.3'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right .2rem center no-repeat; padding-right: 1.6rem; }
.form textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-2); opacity: .85; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--flash); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--flash); }
.form .acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.form .err { min-height: 1.4em; margin: 0; font-size: .88rem; color: var(--flash); }
.form-wrap { padding: clamp(3.5rem, 9vh, 6rem) 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem var(--gut); }
.form-wrap h2 { font-size: var(--s-l); line-height: 1; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }

/* ---------- viewer ---------- */
.viewer { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--engobe); color: var(--ink); }
.viewer::backdrop { background: rgba(219, 220, 216, .7); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; animation: v-in .5s var(--ease); }
@keyframes v-in { from { opacity: 0; } to { opacity: 1; } }
.viewer .bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gut); }
.viewer .bar button { background: none; border: 0; cursor: pointer; font-size: .9rem; padding: .4rem 0; display: inline-flex; gap: .4rem; align-items: center; }
.viewer .bar .navs { display: flex; gap: 1.6rem; }
.viewer .bar svg { width: 16px; height: 16px; }
.viewer .img { min-height: 0; display: grid; place-items: center; padding: 0 var(--gut) var(--gut); }
.viewer img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { transition: none; }
}
